diff options
author | Jason Carey <jcarey@argv.me> | 2015-09-23 11:11:40 -0400 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2015-10-06 19:28:19 -0400 |
commit | b7104c6f2f597335c6b9890ff6b80243625a6258 (patch) | |
tree | 8107d9b98344574c7bd541619c1fcb5b727b0eb2 /src/mongo/scripting/mozjs/proxyscope.cpp | |
parent | e5f65d77a33e5116adb965549deb51ab3ed0a462 (diff) | |
download | mongo-b7104c6f2f597335c6b9890ff6b80243625a6258.tar.gz |
SERVER-20564 no default getOwned for BSON in JS
Diffstat (limited to 'src/mongo/scripting/mozjs/proxyscope.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/proxyscope.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/proxyscope.cpp b/src/mongo/scripting/mozjs/proxyscope.cpp index c97e675f79b..bf49709e495 100644 --- a/src/mongo/scripting/mozjs/proxyscope.cpp +++ b/src/mongo/scripting/mozjs/proxyscope.cpp @@ -119,6 +119,10 @@ void MozJSProxyScope::gc() { _implScope->gc(); } +void MozJSProxyScope::advanceGeneration() { + runOnImplThread([&] { _implScope->advanceGeneration(); }); +} + double MozJSProxyScope::getNumber(const char* field) { double out; runOnImplThread([&] { out = _implScope->getNumber(field); }); @@ -173,8 +177,8 @@ void MozJSProxyScope::setBoolean(const char* field, bool val) { runOnImplThread([&] { _implScope->setBoolean(field, val); }); } -void MozJSProxyScope::setElement(const char* field, const BSONElement& e) { - runOnImplThread([&] { _implScope->setElement(field, e); }); +void MozJSProxyScope::setElement(const char* field, const BSONElement& e, const BSONObj& parent) { + runOnImplThread([&] { _implScope->setElement(field, e, parent); }); } void MozJSProxyScope::setObject(const char* field, const BSONObj& obj, bool readOnly) { |