mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05: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:
parent
3ba17d8df7
commit
42870a9494
3 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue