We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e3274d commit f69f80bCopy full SHA for f69f80b
src/internalBinding/timers.cc
@@ -23,6 +23,11 @@ using AsyncHandle = PyEventLoop::AsyncHandle;
23
*/
24
25
static bool enqueueWithDelay(JSContext *cx, unsigned argc, JS::Value *vp) {
26
+ if (PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_SystemExit)) {
27
+ // quit, exit or sys.exit was called (and raised SystemExit)
28
+ return false;
29
+ }
30
+
31
JS::CallArgs args = JS::CallArgsFromVp(argc, vp);
32
JS::HandleValue jobArgVal = args.get(0);
33
double delaySeconds = args.get(1).toNumber();
0 commit comments