-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: JavaScript
-
ALL
Currently, JS error messages are very confusing for users; e.g.:
Tue Feb 19 11:40:29.554 [conn3] JavaScript execution failed: SyntaxError: Unexpected identifier _funcs9:1
This is partially because we specify an arbitrary variable name (e.g. funcs9) as the script context/filename in V8Scope::_createFunction(). This should either be removed, or toSTLString(v8::TryCatch*) should access the code from the scope's map and parse the start/end position to provide the context reported by v8.
- related to
-
SERVER-8926 Shell displays "JavaScript execution failed: " before all JavaScript errors, adds "L" before line number
- Closed