mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Move ConsoleObject construction from GlobalObject to Intrinsics
This will allow us to move the underlying console from GlobalObject to ConsoleObject without still having to do a 'console' property lookup on the GlobalObject.
This commit is contained in:
@@ -172,7 +172,7 @@ void GlobalObject::initialize_global_object(Realm& realm)
|
||||
|
||||
// Non-standard
|
||||
define_direct_property(vm.names.InternalError, realm.intrinsics().internal_error_constructor(), attr);
|
||||
define_direct_property(vm.names.console, heap().allocate<ConsoleObject>(realm, realm), attr);
|
||||
define_direct_property(vm.names.console, realm.intrinsics().console_object(), attr);
|
||||
define_native_function(realm, vm.names.gc, gc, 0, attr);
|
||||
|
||||
// Assign intrinsics and functions that depend on the GlobalObject's native functions
|
||||
|
||||
Reference in New Issue
Block a user