summaryrefslogtreecommitdiff
path: root/cli/tests/subdir/test_worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/subdir/test_worker.js')
-rw-r--r--cli/tests/subdir/test_worker.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/cli/tests/subdir/test_worker.js b/cli/tests/subdir/test_worker.js
deleted file mode 100644
index 4260975a6..000000000
--- a/cli/tests/subdir/test_worker.js
+++ /dev/null
@@ -1,19 +0,0 @@
-let thrown = false;
-
-if (self.name !== "") {
- throw Error(`Bad worker name: ${self.name}, expected empty string.`);
-}
-
-onmessage = function (e) {
- if (thrown === false) {
- thrown = true;
- throw new SyntaxError("[test error]");
- }
-
- postMessage(e.data);
- close();
-};
-
-onerror = function () {
- return false;
-};