summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/timestamp.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/scripting/mozjs/timestamp.h')
-rw-r--r--src/mongo/scripting/mozjs/timestamp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/scripting/mozjs/timestamp.h b/src/mongo/scripting/mozjs/timestamp.h
index 1dc4a998420..c5cbd869b7b 100644
--- a/src/mongo/scripting/mozjs/timestamp.h
+++ b/src/mongo/scripting/mozjs/timestamp.h
@@ -46,6 +46,12 @@ namespace mozjs {
struct TimestampInfo : public BaseInfo {
static void construct(JSContext* cx, JS::CallArgs args);
+ struct Functions {
+ MONGO_DECLARE_JS_FUNCTION(toJSON);
+ };
+
+ static const JSFunctionSpec methods[2];
+
static const char* const className;
};