Set empty object as console prototype (#33358)

* Remove console prototype hack

The console object has an empty object as its prototype,
not the realm object prototype.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-09-08 01:10:47 +02:00 committed by GitHub
parent f3f96c3393
commit 1c6fb1a7ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 18 deletions

View file

@ -5,8 +5,7 @@
// https://console.spec.whatwg.org/
[ClassString="Console",
Exposed=(Window,Worker,Worklet),
ProtoObjectHack]
Exposed=(Window,Worker,Worklet)]
namespace console {
// Logging
undefined log(any... messages);

View file

@ -1,12 +1,2 @@
[console-is-a-namespace.any.worker.html]
[The prototype chain must be correct]
expected: FAIL
[console-is-a-namespace.any.html]
[The prototype chain must be correct]
expected: FAIL
[console-is-a-namespace.any.shadowrealm.html]
expected: ERROR

View file

@ -1,7 +1,4 @@
[idlharness.any.html]
[console namespace: [[Prototype\]\] is Object.prototype]
expected: FAIL
[console namespace: operation assert(optional boolean, any...)]
expected: FAIL
@ -28,9 +25,6 @@
[idlharness.any.worker.html]
[console namespace: [[Prototype\]\] is Object.prototype]
expected: FAIL
[console namespace: operation assert(optional boolean, any...)]
expected: FAIL