1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 17:44:56 +09:00
ladybird/Userland/Libraries/LibJS/Contrib/Test262
Linus Groh 7c468b5a77 LibJS: Pass Realm to GlobalObject::initialize_global_object()
Global object initialization is tightly coupled to realm creation, so
simply pass it to the function instead of relying on the non-standard
'associated realm' concept, which I'd like to remove later.

This works essentially the same way as regular Object::initialize() now.

Additionally this allows us to forward the realm to GlobalObject's
add_constructor() / initialize_constructor() helpers, so they set the
correct realm on the allocated constructor function object.
2022-08-23 13:58:30 +01:00
..
$262Object.cpp LibJS: Pass Realm to GlobalObject::initialize_global_object() 2022-08-23 13:58:30 +01:00
$262Object.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
AgentObject.cpp LibJS: Replace GlobalObject with VM in Value AOs [Part 4/19] 2022-08-23 13:58:30 +01:00
AgentObject.h LibJS+LibWeb: Replace GlobalObject with Realm in initialize() functions 2022-08-23 13:58:30 +01:00
GlobalObject.cpp LibJS: Pass Realm to GlobalObject::initialize_global_object() 2022-08-23 13:58:30 +01:00
GlobalObject.h LibJS: Pass Realm to GlobalObject::initialize_global_object() 2022-08-23 13:58:30 +01:00
IsHTMLDDA.cpp LibJS+LibWeb: Replace GlobalObject with Realm in object constructors 2022-08-23 13:58:30 +01:00
IsHTMLDDA.h LibJS+LibWeb: Replace GlobalObject with Realm in object constructors 2022-08-23 13:58:30 +01:00