From e08ece2d2cc2c39b067dc271f52516bdee7c06ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 14 Apr 2020 17:41:06 +0200 Subject: fix(worker): make worker name spec compliant (#4746) --- cli/tests/subdir/test_worker.js | 4 ++-- cli/tests/workers_test.ts | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/subdir/test_worker.js b/cli/tests/subdir/test_worker.js index 02cd86eac..4260975a6 100644 --- a/cli/tests/subdir/test_worker.js +++ b/cli/tests/subdir/test_worker.js @@ -1,7 +1,7 @@ let thrown = false; -if (self.name !== "jsWorker") { - throw Error(`Bad worker name: ${self.name}, expected jsWorker`); +if (self.name !== "") { + throw Error(`Bad worker name: ${self.name}, expected empty string.`); } onmessage = function (e) { diff --git a/cli/tests/workers_test.ts b/cli/tests/workers_test.ts index d18186658..c51adcf75 100644 --- a/cli/tests/workers_test.ts +++ b/cli/tests/workers_test.ts @@ -34,7 +34,6 @@ Deno.test({ const jsWorker = new Worker("../tests/subdir/test_worker.js", { type: "module", - name: "jsWorker", }); const tsWorker = new Worker("../tests/subdir/test_worker.ts", { type: "module", -- cgit v1.2.3