Updates:
Summary: Capture correct line numbers for Errors thrown in an eval.
Status: Accepted
Owner: [email protected]
Labels: Type-FeatureRequest
Comment #2 on issue 1914 by [email protected]: Capture correct line
numbers for Errors thrown in an eval.
http://code.google.com/p/v8/issues/detail?id=1914
The problem described in the first post is already solved. Every Error
object created in V8 has a .stack property that contains the string
representation of the stack trace captured at creation point. It's easy to
parse the file name and line numbers from that string. An alternative is
described in http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi.
The actual problem here is that the line numbers in eval'ed code is not
being captured. This would be a feature request.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev