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.
2 parents 7a2ffd0 + 0ea5589 commit 5fc6ce0Copy full SHA for 5fc6ce0
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