mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +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
8 changed files with 20 additions and 20 deletions
|
@ -644,7 +644,7 @@ Value VM::get_new_target()
|
|||
}
|
||||
|
||||
// 9.4.5 GetGlobalObject ( ), https://tc39.es/ecma262/#sec-getglobalobject
|
||||
GlobalObject& VM::get_global_object()
|
||||
Object& VM::get_global_object()
|
||||
{
|
||||
// 1. Let currentRealm be the current Realm Record.
|
||||
auto& current_realm = *this->current_realm();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue