mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 00:08:11 +00:00
LibJS: Simplify Cell::initialize()
Remove the Interpreter& argument and pass only GlobalObject&. We can find everything we need via the global object anyway.
This commit is contained in:
parent
299824de73
commit
aaf6014ae1
82 changed files with 161 additions and 160 deletions
|
@ -40,9 +40,9 @@ LocationObject::LocationObject(JS::GlobalObject& global_object)
|
|||
{
|
||||
}
|
||||
|
||||
void LocationObject::initialize(JS::Interpreter& interpreter, JS::GlobalObject& global_object)
|
||||
void LocationObject::initialize(JS::GlobalObject& global_object)
|
||||
{
|
||||
Object::initialize(interpreter, global_object);
|
||||
Object::initialize(global_object);
|
||||
u8 attr = JS::Attribute::Writable | JS::Attribute::Enumerable;
|
||||
define_native_property("href", href_getter, href_setter, attr);
|
||||
define_native_property("host", host_getter, nullptr, attr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue