From e39d4e3e7fb9815bf094e7321d1d73d00275831a Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Sun, 21 Aug 2022 12:57:10 +0100 Subject: fix(core/runtime): always cancel termination in exception handling (#15514) --- cli/tests/testdata/report_error_end_of_program.ts | 1 + cli/tests/testdata/report_error_end_of_program.ts.out | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 cli/tests/testdata/report_error_end_of_program.ts create mode 100644 cli/tests/testdata/report_error_end_of_program.ts.out (limited to 'cli/tests/testdata') 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 -- cgit v1.2.3