summaryrefslogtreecommitdiff
path: root/cli/tests/subdir/test_worker.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-04-14 17:41:06 +0200
committerGitHub <noreply@github.com>2020-04-14 17:41:06 +0200
commite08ece2d2cc2c39b067dc271f52516bdee7c06ca (patch)
tree1da0e54feb757784902c4619218900110c37a2e3 /cli/tests/subdir/test_worker.js
parentcb5dd69dda4872533b05a4e9184f7e35f21c2010 (diff)
fix(worker): make worker name spec compliant (#4746)
Diffstat (limited to 'cli/tests/subdir/test_worker.js')
-rw-r--r--cli/tests/subdir/test_worker.js4
1 files changed, 2 insertions, 2 deletions
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) {