mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-31 04:45:32 +00:00
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.
4.2 KiB
4.2 KiB