0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 00:56:44 +01:00

cal back fix

This commit is contained in:
Eliot Horowitz 2010-07-30 16:04:54 -04:00
parent 14482d8cc1
commit 272755d255

View File

@ -176,6 +176,8 @@ namespace mongo {
return JS_FALSE;
}
ScriptEngine::runConnectCallback( *conn );
assert( JS_SetPrivate( cx , obj , (void*)( new shared_ptr< DBClientWithCommands >( conn ) ) ) );
jsval host_val = c.toval( host.c_str() );
assert( JS_SetProperty( cx , obj , "host" , &host_val ) );