mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05: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;
|
||||
},
|
||||
},
|
||||
|
|
|
@ -15020,9 +15020,7 @@
|
|||
"WorkerLocation-origin.sub.window.html": [
|
||||
"workerLocation.origin must use ASCII code points"
|
||||
],
|
||||
"WorkerNavigator-hardware-concurrency.any.worker.html": [
|
||||
"Test worker navigator hardware concurrency."
|
||||
],
|
||||
"WorkerNavigator-hardware-concurrency.any.worker.html": true,
|
||||
"WorkerNavigator.any.worker.html": [
|
||||
"Testing Navigator properties on workers."
|
||||
],
|
||||
|
|
Loading…
Reference in a new issue