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);