mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
simplified uncatchable exception handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user