mirror of
https://github.com/bellard/quickjs.git
synced 2025-09-30 06:54:26 +03:00
exit by default on unhandled promise rejections (issue #305)
This commit is contained in:
@@ -3961,6 +3961,7 @@ void js_std_promise_rejection_tracker(JSContext *ctx, JSValueConst promise,
|
||||
if (!is_handled) {
|
||||
fprintf(stderr, "Possibly unhandled promise rejection: ");
|
||||
js_std_dump_error1(ctx, reason);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user