From 504d2936ecf1a5520ca20f83792a94b219e84f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 23 Jul 2022 00:40:42 +0200 Subject: fix: unhandledrejection handling for sync throw in top level (#15279) Fixes an edge in "unhandledrejection" event that prevent synchronous errors being surfaced when throw from a top-level scope. --- cli/tests/integration/run_tests.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli/tests/integration') diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 25d84ae46..29e424aae 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2787,3 +2787,8 @@ itest!(unhandled_rejection { args: "run --check unhandled_rejection.ts", output: "unhandled_rejection.ts.out", }); + +itest!(unhandled_rejection_sync_error { + args: "run --check unhandled_rejection_sync_error.ts", + output: "unhandled_rejection_sync_error.ts.out", +}); -- cgit v1.2.3