simplified uncatchable exception handling

This commit is contained in:
Fabrice Bellard
2025-04-29 18:48:58 +02:00
parent 23e2dc9c39
commit 53327c2580
3 changed files with 10 additions and 29 deletions

View File

@@ -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;
}