save host in Mongo object

This commit is contained in:
Aaron
2009-05-14 13:18:37 -04:00
parent 397e5b13e8
commit 3e46a4507c

View File

@@ -118,6 +118,8 @@ namespace mongo {
}
JS_SetPrivate( cx , obj , (void*)conn );
jsval host_val = c.toval( host.c_str() );
assert( JS_SetProperty( cx , obj , "host" , &host_val ) );
return JS_TRUE;
}