diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-04-18 12:41:01 -0400 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2018-04-27 16:51:01 -0400 |
commit | 8bd820b1418fd1811ed7c79bbd60bbb2c9d7cb5c (patch) | |
tree | cd3d77ce18e35e2f41fdc99a17d97bec1d44cb08 /src/mongo/scripting/mozjs/global.h | |
parent | a4108de09a0703f550ec4f15764f8ad75e756271 (diff) | |
download | mongo-8bd820b1418fd1811ed7c79bbd60bbb2c9d7cb5c.tar.gz |
SERVER-31508: Make Javascript sleep interruptable
Diffstat (limited to 'src/mongo/scripting/mozjs/global.h')
-rw-r--r-- | src/mongo/scripting/mozjs/global.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/global.h b/src/mongo/scripting/mozjs/global.h index b77d3b9855f..b5c89975933 100644 --- a/src/mongo/scripting/mozjs/global.h +++ b/src/mongo/scripting/mozjs/global.h @@ -41,6 +41,7 @@ namespace mozjs { */ struct GlobalInfo : public BaseInfo { struct Functions { + MONGO_DECLARE_JS_FUNCTION(sleep); MONGO_DECLARE_JS_FUNCTION(gc); MONGO_DECLARE_JS_FUNCTION(print); MONGO_DECLARE_JS_FUNCTION(version); @@ -48,7 +49,7 @@ struct GlobalInfo : public BaseInfo { MONGO_DECLARE_JS_FUNCTION(getJSHeapLimitMB); }; - static const JSFunctionSpec freeFunctions[6]; + static const JSFunctionSpec freeFunctions[7]; static const char* const className; static const unsigned classFlags = JSCLASS_GLOBAL_FLAGS; |