summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/valuereader.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2015-09-23 11:11:40 -0400
committerJason Carey <jcarey@argv.me>2015-10-06 19:28:19 -0400
commitb7104c6f2f597335c6b9890ff6b80243625a6258 (patch)
tree8107d9b98344574c7bd541619c1fcb5b727b0eb2 /src/mongo/scripting/mozjs/valuereader.h
parente5f65d77a33e5116adb965549deb51ab3ed0a462 (diff)
downloadmongo-b7104c6f2f597335c6b9890ff6b80243625a6258.tar.gz
SERVER-20564 no default getOwned for BSON in JS
Diffstat (limited to 'src/mongo/scripting/mozjs/valuereader.h')
-rw-r--r--src/mongo/scripting/mozjs/valuereader.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/scripting/mozjs/valuereader.h b/src/mongo/scripting/mozjs/valuereader.h
index 223600aa5e4..f67b313b628 100644
--- a/src/mongo/scripting/mozjs/valuereader.h
+++ b/src/mongo/scripting/mozjs/valuereader.h
@@ -47,8 +47,8 @@ public:
*/
ValueReader(JSContext* cx, JS::MutableHandleValue value);
- void fromBSONElement(const BSONElement& elem, bool readOnly);
- void fromBSON(const BSONObj& obj, bool readOnly);
+ void fromBSONElement(const BSONElement& elem, const BSONObj& parent, bool readOnly);
+ void fromBSON(const BSONObj& obj, const BSONObj* parent, bool readOnly);
void fromStringData(StringData sd);
void fromDecimal128(Decimal128 decimal);