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/nativefunction.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/nativefunction.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/nativefunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/nativefunction.cpp b/src/mongo/scripting/mozjs/nativefunction.cpp index 4d019a5b347..6399bb60709 100644 --- a/src/mongo/scripting/mozjs/nativefunction.cpp +++ b/src/mongo/scripting/mozjs/nativefunction.cpp @@ -92,7 +92,7 @@ void NativeFunctionInfo::call(JSContext* cx, JS::CallArgs args) { BSONObj out = holder->_func(wobj.toBSON(), holder->_ctx); - ValueReader(cx, args.rval()).fromBSONElement(out.firstElement(), false); + ValueReader(cx, args.rval()).fromBSONElement(out.firstElement(), out, false); } void NativeFunctionInfo::finalize(JSFreeOp* fop, JSObject* obj) { |