summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/js/99_main.js2
-rw-r--r--tools/wpt/expectation.json4
2 files changed, 2 insertions, 4 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;
},
},
diff --git a/tools/wpt/expectation.json b/tools/wpt/expectation.json
index ab8ebe447..a0f53e9eb 100644
--- a/tools/wpt/expectation.json
+++ b/tools/wpt/expectation.json
@@ -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."
],