mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 10:33:54 +00:00
fix(runtime): Getting navigator.hardwareConcurrency
on workers shouldn't throw (#12354)
This commit is contained in:
parent
370c27e09a
commit
e8b3ffd155
2 changed files with 2 additions and 4 deletions
|
@ -348,7 +348,7 @@ delete Object.prototype.__proto__;
|
|||
configurable: true,
|
||||
enumerable: true,
|
||||
get() {
|
||||
webidl.assertBranded(this, Navigator);
|
||||
webidl.assertBranded(this, WorkerNavigator);
|
||||
return numCpus;
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue