fix off-by-one in spidermonkey line numbering SERVER-2215

This commit is contained in:
Mathias Stearn
2010-12-13 18:51:31 -05:00
parent e1bcc6b3a2
commit 623ad9da1a
2 changed files with 2 additions and 2 deletions

View File

@@ -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 ){