Status: New
Owner: ----
New issue 672 by [email protected]: Let the eval //@sourceURL trick
work for stack traces.
http://code.google.com/p/v8/issues/detail?id=672
Feature Request:
When I eval a script to add functions to the global scope, and those
functions throw exceptions, I want to be able to get a meaningful stack
trace from those exceptions.
The sourceURL directive like this:
eval('function g() { throw Error('x'); } \n//@ sourceURL=foo.js');
almost works. The right script name shows up in the debugger. But when I
call g() and inspect error.stack, the script name is wrong. It should show
the sourceURL.
See:
http://nick-santos.com/tests/stacktrace.html
for a demo (same as the attached file).
Attachments:
stacktrace.html 355 bytes
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
To unsubscribe, reply using "remove me" as the subject.