summaryrefslogtreecommitdiff
path: root/src/mongo/scripting/mozjs/proxyscope.cpp
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2016-08-25 15:58:25 -0400
committerJonathan Reams <jbreams@mongodb.com>2016-08-29 17:15:34 -0400
commit1875792bdc435c695aca1b6b57be7486e7df70c5 (patch)
tree5251a72001f194e0599ceeb7d9bf4208f6c54b70 /src/mongo/scripting/mozjs/proxyscope.cpp
parentbdf345a78764d2552373b5f938ac9aa6be5346b9 (diff)
downloadmongo-1875792bdc435c695aca1b6b57be7486e7df70c5.tar.gz
SERVER-25764 Interrupt javascript periodically.
Diffstat (limited to 'src/mongo/scripting/mozjs/proxyscope.cpp')
-rw-r--r--src/mongo/scripting/mozjs/proxyscope.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/scripting/mozjs/proxyscope.cpp b/src/mongo/scripting/mozjs/proxyscope.cpp
index d5233f8379d..cf41e84091c 100644
--- a/src/mongo/scripting/mozjs/proxyscope.cpp
+++ b/src/mongo/scripting/mozjs/proxyscope.cpp
@@ -245,6 +245,10 @@ void MozJSProxyScope::kill() {
_implScope->kill();
}
+void MozJSProxyScope::interrupt() {
+ _implScope->interrupt();
+}
+
/**
* Invokes a function on the implementation thread
*