summaryrefslogtreecommitdiff
path: root/tests/testdata/run/classic_workers_event_loop.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testdata/run/classic_workers_event_loop.js')
-rw-r--r--tests/testdata/run/classic_workers_event_loop.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/testdata/run/classic_workers_event_loop.js b/tests/testdata/run/classic_workers_event_loop.js
new file mode 100644
index 000000000..810a6df7f
--- /dev/null
+++ b/tests/testdata/run/classic_workers_event_loop.js
@@ -0,0 +1,4 @@
+new Worker(
+ "data:application/javascript,setTimeout(() => {console.log('done'); self.close()}, 1000)",
+ { type: "classic" },
+);