diff options
author | Ben Becker <ben.becker@10gen.com> | 2013-01-22 10:51:50 -0800 |
---|---|---|
committer | Ben Becker <ben.becker@10gen.com> | 2013-01-22 10:52:07 -0800 |
commit | 748b5f462a92fb5ee64c20df5789d393b568ff56 (patch) | |
tree | b7fb190e9f02e319eb30cbf3bdd899642f295685 /src/mongo/scripting/sm_db.cpp | |
parent | 439ce8c8911e33ec47fd1bec9bb6289baf3edfc0 (diff) | |
download | mongo-748b5f462a92fb5ee64c20df5789d393b568ff56.tar.gz |
SERVER-8254: load new js helpers from spidermonkey
Diffstat (limited to 'src/mongo/scripting/sm_db.cpp')
-rw-r--r-- | src/mongo/scripting/sm_db.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/scripting/sm_db.cpp b/src/mongo/scripting/sm_db.cpp index d00eedf882c..0ceaa7a1c0e 100644 --- a/src/mongo/scripting/sm_db.cpp +++ b/src/mongo/scripting/sm_db.cpp @@ -33,6 +33,12 @@ namespace mongo { bool haveLocalShardingInfo( const string& ns ); + // Generated symbols for JS files + namespace JSFiles { + extern const JSFile types; + extern const JSFile assert; + } + namespace spidermonkey { JSFunctionSpec bson_functions[] = { @@ -1650,6 +1656,9 @@ zzz dbref_class.name = dbrefName; verify( JS_InitClass( cx , global , 0 , &dbref_class , dbref_constructor , 2 , 0 , bson_functions , 0 , 0 ) ); + scope->execSetup(JSFiles::assert); + scope->execSetup(JSFiles::types); + scope->execCoreFiles(); } |