diff options
author | Spencer Jackson <spencer.jackson@mongodb.com> | 2017-02-16 17:58:26 -0500 |
---|---|---|
committer | Spencer Jackson <spencer.jackson@mongodb.com> | 2017-04-10 17:11:43 -0400 |
commit | d20c74fe700d15ea555f9c6cae916b522005eec7 (patch) | |
tree | 941d9543e08c2493f61e3a000eb2853645a5b3d8 /src/mongo/scripting/mozjs/proxyscope.cpp | |
parent | aee82ce9a64c6f44fae2f81598c8e153d19f8d02 (diff) | |
download | mongo-d20c74fe700d15ea555f9c6cae916b522005eec7.tar.gz |
SERVER-28323 Don't pass JavaScript scopes a function ID number
Diffstat (limited to 'src/mongo/scripting/mozjs/proxyscope.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/proxyscope.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/scripting/mozjs/proxyscope.cpp b/src/mongo/scripting/mozjs/proxyscope.cpp index 69e21f4c7a6..78bccb1871b 100644 --- a/src/mongo/scripting/mozjs/proxyscope.cpp +++ b/src/mongo/scripting/mozjs/proxyscope.cpp @@ -231,10 +231,9 @@ void MozJSProxyScope::injectNative(const char* field, NativeFunction func, void* run([&] { _implScope->injectNative(field, func, data); }); } -ScriptingFunction MozJSProxyScope::_createFunction(const char* raw, - ScriptingFunction functionNumber) { +ScriptingFunction MozJSProxyScope::_createFunction(const char* raw) { ScriptingFunction out; - run([&] { out = _implScope->_createFunction(raw, functionNumber); }); + run([&] { out = _implScope->_createFunction(raw); }); return out; } |