summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/run/queue_microtask_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/run/queue_microtask_error.ts')
-rw-r--r--cli/tests/testdata/run/queue_microtask_error.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/tests/testdata/run/queue_microtask_error.ts b/cli/tests/testdata/run/queue_microtask_error.ts
new file mode 100644
index 000000000..b2e9642c5
--- /dev/null
+++ b/cli/tests/testdata/run/queue_microtask_error.ts
@@ -0,0 +1,5 @@
+queueMicrotask(() => {
+ throw new Error("foo");
+});
+console.log(1);
+Promise.resolve().then(() => console.log(2));