more spider monkey work and testing

This commit is contained in:
Eliot Horowitz
2009-04-24 16:41:40 -04:00
parent 530c1f2e7b
commit 4fcbdf301e
5 changed files with 55 additions and 17 deletions

View File

@@ -17,5 +17,11 @@ namespace mongo {
ScriptEngine::~ScriptEngine(){
}
int Scope::invoke( const char* code , const BSONObj& args ){
ScriptingFunction func = createFunction( code );
uassert( "compile failed" , func );
return invoke( func , args );
}
ScriptEngine * globalScriptEngine;
}