diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/proxyscope.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/proxyscope.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/scripting/mozjs/proxyscope.cpp b/src/mongo/scripting/mozjs/proxyscope.cpp index dba29eaee7d..5e48aabf9cf 100644 --- a/src/mongo/scripting/mozjs/proxyscope.cpp +++ b/src/mongo/scripting/mozjs/proxyscope.cpp @@ -106,13 +106,10 @@ std::string MozJSProxyScope::getError() { return out; } -/** - * This is an artifact of how out of memory errors were communicated in V8. We - * just throw out of memory errors from spidermonkey when we get them, rather - * than setting a flag and having to pick them up here. - */ bool MozJSProxyScope::hasOutOfMemoryException() { - return false; + bool out; + run([&] { out = _implScope->hasOutOfMemoryException(); }); + return out; } void MozJSProxyScope::gc() { |