fix off-by-one in spidermonkey line numbering SERVER-2215
This commit is contained in:
@@ -1429,7 +1429,7 @@ namespace mongo {
|
||||
jsval ret = JSVAL_VOID;
|
||||
|
||||
installInterrupt( timeoutMs );
|
||||
JSBool worked = JS_EvaluateScript( _context , _global , code.data() , code.size() , name.c_str() , 0 , &ret );
|
||||
JSBool worked = JS_EvaluateScript( _context , _global , code.data() , code.size() , name.c_str() , 1 , &ret );
|
||||
uninstallInterrupt( timeoutMs );
|
||||
|
||||
if ( ! worked && _error.size() == 0 ){
|
||||
|
||||
Reference in New Issue
Block a user