mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:17:35 +00:00
LibJS: Let Shape store a Realm instead of a GlobalObject
This is a cautious first step towards being able to create JS objects before a global object has been instantiated.
This commit is contained in:
parent
7a6935a2ff
commit
50d951aea2
22 changed files with 104 additions and 55 deletions
|
@ -24,7 +24,7 @@ void Realm::set_global_object(GlobalObject& global_object, Object* this_value)
|
|||
// 2. Assert: Type(globalObj) is Object.
|
||||
|
||||
// Non-standard
|
||||
global_object.set_associated_realm({}, *this);
|
||||
global_object.set_associated_realm(*this);
|
||||
|
||||
// 3. If thisValue is undefined, set thisValue to globalObj.
|
||||
if (!this_value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue