fix join() now that done_ is set elsewhere MINOR

This commit is contained in:
Aaron
2009-05-14 18:12:58 -04:00
parent df9fe97f79
commit df41c66bb4
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
}