fix join() now that done_ is set elsewhere MINOR
This commit is contained in:
@@ -585,6 +585,7 @@ namespace mongo {
|
||||
_context = JS_NewContext( globalSMEngine->_runtime , 8192 );
|
||||
_convertor = new Convertor( _context );
|
||||
massert( "JS_NewContext failed" , _context );
|
||||
// JS_BeginRequest( _context );
|
||||
|
||||
JS_SetOptions( _context , JSOPTION_VAROBJFIX);
|
||||
//JS_SetVersion( _context , JSVERSION_LATEST); TODO
|
||||
@@ -613,6 +614,7 @@ namespace mongo {
|
||||
}
|
||||
|
||||
if ( _context ){
|
||||
// JS_EndRequest( _context );
|
||||
JS_DestroyContext( _context );
|
||||
_context = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user