diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2022-08-21 12:57:10 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-21 13:57:10 +0200 |
| commit | e39d4e3e7fb9815bf094e7321d1d73d00275831a (patch) | |
| tree | 4eb2c43dd74ecbe5f15ea1783045ec47288d1f7d /cli/tests/testdata | |
| parent | 3caec9721e094858411cf5452db76c4aea390625 (diff) | |
fix(core/runtime): always cancel termination in exception handling (#15514)
Diffstat (limited to 'cli/tests/testdata')
| -rw-r--r-- | cli/tests/testdata/report_error_end_of_program.ts | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/report_error_end_of_program.ts.out | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/report_error_end_of_program.ts b/cli/tests/testdata/report_error_end_of_program.ts new file mode 100644 index 000000000..cd7ce7f9c --- /dev/null +++ b/cli/tests/testdata/report_error_end_of_program.ts @@ -0,0 +1 @@ +reportError(new Error("foo")); diff --git a/cli/tests/testdata/report_error_end_of_program.ts.out b/cli/tests/testdata/report_error_end_of_program.ts.out new file mode 100644 index 000000000..ecca63389 --- /dev/null +++ b/cli/tests/testdata/report_error_end_of_program.ts.out @@ -0,0 +1,4 @@ +error: Uncaught Error: foo +reportError(new Error("foo")); + ^ + at [WILDCARD]/report_error_end_of_program.ts:1:13 |
