1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 11:57:35 +00:00

LibWeb: Add some missing wrapper calls to base class initialize()

This is easy to forget, but the problem will go away once we start to
auto-generate this code.
This commit is contained in:
Andreas Kling 2020-06-20 18:27:31 +02:00
parent 3ba17d8df7
commit 42870a9494
3 changed files with 6 additions and 3 deletions

View file

@ -40,8 +40,9 @@ LocationObject::LocationObject(JS::GlobalObject& global_object)
{
}
void LocationObject::initialize(JS::Interpreter&, JS::GlobalObject&)
void LocationObject::initialize(JS::Interpreter& interpreter, JS::GlobalObject& global_object)
{
Object::initialize(interpreter, 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);