mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:08:12 +00:00
LibWeb: Split JS wrapper constructors into construct/initialize
This commit is contained in:
parent
06e29fac57
commit
03da70c7d0
31 changed files with 107 additions and 55 deletions
|
@ -40,8 +40,8 @@ EventWrapper* wrap(JS::Heap& heap, Event& event)
|
|||
return static_cast<EventWrapper*>(wrap_impl(heap, event));
|
||||
}
|
||||
|
||||
EventWrapper::EventWrapper(Event& event)
|
||||
: Wrapper(*interpreter().global_object().object_prototype())
|
||||
EventWrapper::EventWrapper(JS::GlobalObject& global_object, Event& event)
|
||||
: Wrapper(*global_object.object_prototype())
|
||||
, m_event(event)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue