mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibJS+LibWeb: Let Realm store a plain Object for [[GlobalObject]]
This removes the requirement of having a global object that actually inherits from JS::GlobalObject, which is now a perfectly valid scenario. With the upcoming removal of wrapper objects in LibWeb, the HTML::Window object will inherit from DOM::EventTarget, which means it cannot also inherit from JS::GlobalObject.
This commit is contained in:
parent
72730422bb
commit
52543fc771
Notes:
sideshowbarker
2024-07-17 07:39:33 +09:00
Author: https://github.com/linusg
Commit: 52543fc771
Pull-request: https://github.com/SerenityOS/serenity/pull/15057
8 changed files with 20 additions and 20 deletions
|
@ -186,7 +186,7 @@ public:
|
|||
|
||||
Value get_new_target();
|
||||
|
||||
GlobalObject& get_global_object();
|
||||
Object& get_global_object();
|
||||
|
||||
CommonPropertyNames names;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue