diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-23 00:40:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-23 00:40:42 +0200 |
| commit | 504d2936ecf1a5520ca20f83792a94b219e84f53 (patch) | |
| tree | f4d23c520355f340374529d67b31657821e73163 /cli/tests/testdata/unhandled_rejection_sync_error.ts.out | |
| parent | 72199303d899b8ddf2ff46ed11bd513ed9cc47e2 (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/testdata/unhandled_rejection_sync_error.ts.out')
| -rw-r--r-- | cli/tests/testdata/unhandled_rejection_sync_error.ts.out | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/tests/testdata/unhandled_rejection_sync_error.ts.out b/cli/tests/testdata/unhandled_rejection_sync_error.ts.out new file mode 100644 index 000000000..270319824 --- /dev/null +++ b/cli/tests/testdata/unhandled_rejection_sync_error.ts.out @@ -0,0 +1,6 @@ +[WILDCARD] +unhandled rejection at: Promise { + <rejected> Error: boom! + at file:///[WILDCARD]testdata/unhandled_rejection_sync_error.ts:6:7 +} reason: Error: boom! + at file:///[WILDCARD]testdata/unhandled_rejection_sync_error.ts:6:7 |
