npe for sm 1.8 that makes client pass

This commit is contained in:
Eliot Horowitz
2009-08-28 00:04:43 -04:00
parent 58fa03169f
commit c0f769582f

View File

@@ -1155,7 +1155,7 @@ namespace mongo {
}
installCheckTimeout( timeoutMs );
JSBool ret = JS_CallFunction( _context , _this , func , nargs , smargs , &rval );
JSBool ret = JS_CallFunction( _context , _this ? _this : _global , func , nargs , smargs , &rval );
uninstallCheckTimeout( timeoutMs );
if ( !ret ) {