summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/compat/worker/worker.mjs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-09-03 18:19:30 +0200
committerGitHub <noreply@github.com>2022-09-03 18:19:30 +0200
commite324151520c62c9503e5e38da66827cd7815ea14 (patch)
tree51449e9ea202b758a4ac74210b97f6c9b65d26e7 /cli/tests/testdata/compat/worker/worker.mjs
parentfc4025c878a7986576f693ed3ad297212f6a99de (diff)
BREAKING(unstable): remove --compat mode (#15678)
This commit removes "compat" mode. We shipped support for "npm:" specifier support in v1.25 and that is preferred way to interact with Node code that we will iterate and improve upon.
Diffstat (limited to 'cli/tests/testdata/compat/worker/worker.mjs')
-rw-r--r--cli/tests/testdata/compat/worker/worker.mjs9
1 files changed, 0 insertions, 9 deletions
diff --git a/cli/tests/testdata/compat/worker/worker.mjs b/cli/tests/testdata/compat/worker/worker.mjs
deleted file mode 100644
index eb7cfed19..000000000
--- a/cli/tests/testdata/compat/worker/worker.mjs
+++ /dev/null
@@ -1,9 +0,0 @@
-console.log("hello from worker");
-
-self.onmessage = (e) => {
- if (e.data != "hello") {
- throw new Error("wrong message");
- }
-
- self.postMessage({ pid: process.pid });
-}