summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
authorAndreu Botella <abb@randomunok.com>2021-10-07 19:39:33 +0200
committerGitHub <noreply@github.com>2021-10-07 19:39:33 +0200
commite8b3ffd155b6ef8d88ed32f66feeba5c54e70644 (patch)
tree04e09c196da04c9146017f727f9590ab1ccd3426 /runtime/js
parent370c27e09a63ca36f0e0aba8bef6b10f4484d70d (diff)
fix(runtime): Getting `navigator.hardwareConcurrency` on workers shouldn't throw (#12354)
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index 152430a76..4f21655d6 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -348,7 +348,7 @@ delete Object.prototype.__proto__;
configurable: true,
enumerable: true,
get() {
- webidl.assertBranded(this, Navigator);
+ webidl.assertBranded(this, WorkerNavigator);
return numCpus;
},
},