My favorites | Sign in
Project Home Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 5: ScriptError should have file name and line number properties
1 person starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by wladi...@palant.de, Oct 5, 2010
The error message "Reference error: undefined is not defined" isn't very helpful - ScriptError should allow locating the error without wrapping the entire code into a try .. catch block and printing errors in JavaScript.

For reference, here are the properties of the JavaScript Error object:

https://developer.mozilla.org/en/JavaScript/Reference/global_objects/error

message, fileName and lineNumber are essential, name is a nice to have.
Oct 5, 2010
#1 wladi...@palant.de
Note: I did try cx.get_stack(). However, when ScriptError is being handled the stack is empty.

Powered by Google Project Hosting