summaryrefslogtreecommitdiff
path: root/tests/testdata/run/queue_microtask_error.ts
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/queue_microtask_error.ts')
-rw-r--r--tests/testdata/run/queue_microtask_error.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testdata/run/queue_microtask_error.ts b/tests/testdata/run/queue_microtask_error.ts
new file mode 100644
index 000000000..b2e9642c5
--- /dev/null
+++ b/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));