summaryrefslogtreecommitdiff
path: root/quickjs-libc.c
diff options
context:
space:
mode:
Diffstat (limited to 'quickjs-libc.c')
-rw-r--r--quickjs-libc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quickjs-libc.c b/quickjs-libc.c
index 04684b9..091fd42 100644
--- a/quickjs-libc.c
+++ b/quickjs-libc.c
@@ -804,7 +804,7 @@ static JSValue js_evalScript(JSContext *ctx, JSValueConst this_val,
/* convert the uncatchable "interrupted" error into a normal error
so that it can be caught by the REPL */
if (JS_IsException(ret))
- JS_ResetUncatchableError(ctx);
+ JS_SetUncatchableException(ctx, FALSE);
}
return ret;
}