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);

View file

@ -41,8 +41,9 @@ XMLHttpRequestConstructor::XMLHttpRequestConstructor(JS::GlobalObject& global_ob
{
}
void XMLHttpRequestConstructor::initialize(JS::Interpreter&, JS::GlobalObject&)
void XMLHttpRequestConstructor::initialize(JS::Interpreter& interpreter, JS::GlobalObject& global_object)
{
NativeFunction::initialize(interpreter, global_object);
define_property("length", JS::Value(1), JS::Attribute::Configurable);
define_property("UNSENT", JS::Value((i32)XMLHttpRequest::ReadyState::Unsent), JS::Attribute::Enumerable);

View file

@ -40,8 +40,9 @@ XMLHttpRequestPrototype::XMLHttpRequestPrototype(JS::GlobalObject& global_object
{
}
void XMLHttpRequestPrototype::initialize(JS::Interpreter&, JS::GlobalObject&)
void XMLHttpRequestPrototype::initialize(JS::Interpreter& interpreter, JS::GlobalObject& global_object)
{
Object::initialize(interpreter, global_object);
define_native_function("open", open, 2);
define_native_function("send", send, 0);
define_native_property("readyState", ready_state_getter, nullptr, JS::Attribute::Enumerable | JS::Attribute::Configurable);