diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-29 18:48:58 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-29 18:48:58 +0200 |
commit | 53327c2580de657b3d243d9f7de99e6ff2f227b8 (patch) | |
tree | 5492bae35fc7668faac2fdd1d837e8874d5ac323 /quickjs-libc.c | |
parent | 23e2dc9c399f3a3fc1417cadcf8399066ccf31ce (diff) | |
download | quickjs-53327c2580de657b3d243d9f7de99e6ff2f227b8.tar.gz quickjs-53327c2580de657b3d243d9f7de99e6ff2f227b8.zip |
simplified uncatchable exception handling
Diffstat (limited to 'quickjs-libc.c')
-rw-r--r-- | quickjs-libc.c | 2 |
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; } |