Stacktrace crash on eval of anonymous function #34
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I'm seeing an exception when trying to create a stacktrace for tracing purposes.
The actual window level error is reported as this:
So the call "m[1]" is failing in stacktrace.js
Here is the output for the "ref" object at that time
The jquery file used is this one, http://cloud.github.com/downloads/SteveSanderson/knockout/jquery.tmpl.js
It's quite a dense function to look into, but suffice to say stacktrace.js fails to evaluate "m" at line 349 of stacktrace.js as anything other than null. This causes the stacktrace construction to blow out.
This simple pull request change evades the issue. It happens rarely (but reliably) under certain uses of jquery templating.
Not the best pull request summary I've ever done, sorry, but I assure you the problem and solution are genuine.
Let me know if there is any more logging you need.
H