diff options
Diffstat (limited to 'cli/tests/subdir/test_worker.js')
-rw-r--r-- | cli/tests/subdir/test_worker.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/subdir/test_worker.js b/cli/tests/subdir/test_worker.js index 9c1e555b5..02cd86eac 100644 --- a/cli/tests/subdir/test_worker.js +++ b/cli/tests/subdir/test_worker.js @@ -4,7 +4,7 @@ if (self.name !== "jsWorker") { throw Error(`Bad worker name: ${self.name}, expected jsWorker`); } -onmessage = function(e) { +onmessage = function (e) { if (thrown === false) { thrown = true; throw new SyntaxError("[test error]"); @@ -14,6 +14,6 @@ onmessage = function(e) { close(); }; -onerror = function() { +onerror = function () { return false; }; |