summaryrefslogtreecommitdiff
path: root/cli/tests/integration/run_tests.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-07-23 00:40:42 +0200
committerGitHub <noreply@github.com>2022-07-23 00:40:42 +0200
commit504d2936ecf1a5520ca20f83792a94b219e84f53 (patch)
treef4d23c520355f340374529d67b31657821e73163 /cli/tests/integration/run_tests.rs
parent72199303d899b8ddf2ff46ed11bd513ed9cc47e2 (diff)
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.
Diffstat (limited to 'cli/tests/integration/run_tests.rs')
-rw-r--r--cli/tests/integration/run_tests.rs5
1 files changed, 5 insertions, 0 deletions
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",
+});