From a7d9f161079292dfb757fa412767754f26f9f4c4 Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Thu, 5 Jan 2023 16:23:45 -0800 Subject: Report unhandled promise rejection on exit and make exit code 1 instead of 0 (#1734) Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> --- test/bun.js/exit-code-unhandled-throw.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/bun.js/exit-code-unhandled-throw.js (limited to 'test/bun.js/exit-code-unhandled-throw.js') diff --git a/test/bun.js/exit-code-unhandled-throw.js b/test/bun.js/exit-code-unhandled-throw.js new file mode 100644 index 000000000..e8f5ca4cb --- /dev/null +++ b/test/bun.js/exit-code-unhandled-throw.js @@ -0,0 +1,3 @@ +(async function () { + throw 42; +})(); -- cgit v1.2.3