diff options
Diffstat (limited to 'src/mongo/scripting/engine.h')
-rw-r--r-- | src/mongo/scripting/engine.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/scripting/engine.h b/src/mongo/scripting/engine.h index 72ec298af9a..434b38ff921 100644 --- a/src/mongo/scripting/engine.h +++ b/src/mongo/scripting/engine.h @@ -217,8 +217,12 @@ public: return createScope(); } - virtual Scope* newScopeForCurrentThread() { - return createScopeForCurrentThread(); + virtual Scope* newScopeForCurrentThread(boost::optional<int> jsHeapLimitMB) { + return createScopeForCurrentThread(jsHeapLimitMB); + } + + Scope* newScopeForCurrentThread() { + return newScopeForCurrentThread(boost::none); } virtual void runTest() = 0; @@ -273,7 +277,7 @@ public: protected: virtual Scope* createScope() = 0; - virtual Scope* createScopeForCurrentThread() = 0; + virtual Scope* createScopeForCurrentThread(boost::optional<int> jsHeapLimitMB) = 0; void (*_scopeInitCallback)(Scope&); private: |