summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/bindata.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/mozjs/bindata.h')
-rw-r--r--src/mongo/scripting/mozjs/bindata.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/bindata.h b/src/mongo/scripting/mozjs/bindata.h
index 57a4f158949..ae3c8f40c28 100644
--- a/src/mongo/scripting/mozjs/bindata.h
+++ b/src/mongo/scripting/mozjs/bindata.h
@@ -46,13 +46,14 @@ struct BinDataInfo : public BaseInfo {
MONGO_DECLARE_JS_FUNCTION(base64);
MONGO_DECLARE_JS_FUNCTION(hex);
MONGO_DECLARE_JS_FUNCTION(toString);
+ MONGO_DECLARE_JS_FUNCTION(toJSON);
MONGO_DECLARE_JS_FUNCTION(HexData);
MONGO_DECLARE_JS_FUNCTION(MD5);
MONGO_DECLARE_JS_FUNCTION(UUID);
};
- static const JSFunctionSpec methods[4];
+ static const JSFunctionSpec methods[5];
static const JSFunctionSpec freeFunctions[4];
static const char* const className;