mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibJS: Turn initialize_global_object() into a regular initialize()
There's nothing special about global object initialization anymore, this can just work the same way as for any other object now.
This commit is contained in:
parent
867ad03995
commit
cfa5885855
17 changed files with 36 additions and 36 deletions
|
@ -144,9 +144,10 @@ JS::ThrowCompletionOr<bool> SheetGlobalObject::internal_set(const JS::PropertyKe
|
|||
return Base::internal_set(property_name, value, receiver);
|
||||
}
|
||||
|
||||
void SheetGlobalObject::initialize_global_object(JS::Realm& realm)
|
||||
void SheetGlobalObject::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize_global_object(realm);
|
||||
Base::initialize(realm);
|
||||
|
||||
u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
|
||||
define_native_function(realm, "get_real_cell_contents", get_real_cell_contents, 1, attr);
|
||||
define_native_function(realm, "set_real_cell_contents", set_real_cell_contents, 2, attr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue