summaryrefslogtreecommitdiff
path: root/cli/tests/integration
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-08-21 19:16:42 +0100
committerGitHub <noreply@github.com>2022-08-21 20:16:42 +0200
commit97954003cc87b664768918173e8d00f6df35e04f (patch)
treedcad94ac57503ba56e8cd14847cc60b1c2ddc91c /cli/tests/integration
parente96933bc163fd81a276cbc169b17f76724a5ac33 (diff)
feat: `queueMicrotask()` error handling (#15522)
Adds error event dispatching for queueMicrotask(). Consequently unhandled errors are now reported with Deno.core.terminate(), which is immune to the existing quirk with plainly thrown errors (#14158).
Diffstat (limited to 'cli/tests/integration')
-rw-r--r--cli/tests/integration/run_tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs
index 9c60cc745..8998eecc9 100644
--- a/cli/tests/integration/run_tests.rs
+++ b/cli/tests/integration/run_tests.rs
@@ -2745,6 +2745,17 @@ itest!(report_error_end_of_program {
exit_code: 1,
});
+itest!(queue_microtask_error {
+ args: "run --quiet queue_microtask_error.ts",
+ output: "queue_microtask_error.ts.out",
+ exit_code: 1,
+});
+
+itest!(queue_microtask_error_handled {
+ args: "run --quiet queue_microtask_error_handled.ts",
+ output: "queue_microtask_error_handled.ts.out",
+});
+
itest!(spawn_stdout_inherit {
args: "run --quiet --unstable -A spawn_stdout_inherit.ts",
output: "spawn_stdout_inherit.ts.out",