Status: New
Owner: ----
New issue 1914 by [email protected]: Feature Request: Error augmented
with fileName, lineNumber
http://code.google.com/p/v8/issues/detail?id=1914
Can we augment the Error object to include the fileName and lineNumber? I
realize this is non-standard behavior per the EMCAScript 5 specification,
but it is supported in some browsers (e.g. Firefox).
This is helpful in running eval'd code, for example. A SyntaxError could
locate what line number actually caused the SyntaxError.
In embedded V8, it is possible in C++-land to get the fileName and
lineNumber. Much better from the user's perspective would be if they are
available with the Error object in JavaScript-land.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev