mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibWeb: Split JS wrapper constructors into construct/initialize
This commit is contained in:
parent
06e29fac57
commit
03da70c7d0
Notes:
sideshowbarker
2024-07-19 05:31:37 +09:00
Author: https://github.com/awesomekling
Commit: 03da70c7d0
31 changed files with 107 additions and 55 deletions
|
@ -41,10 +41,10 @@ XMLHttpRequestWrapper* wrap(JS::Heap& heap, XMLHttpRequest& impl)
|
|||
return static_cast<XMLHttpRequestWrapper*>(wrap_impl(heap, impl));
|
||||
}
|
||||
|
||||
XMLHttpRequestWrapper::XMLHttpRequestWrapper(XMLHttpRequest& impl)
|
||||
: EventTargetWrapper(impl)
|
||||
XMLHttpRequestWrapper::XMLHttpRequestWrapper(JS::GlobalObject& global_object, XMLHttpRequest& impl)
|
||||
: EventTargetWrapper(global_object, impl)
|
||||
{
|
||||
set_prototype(static_cast<WindowObject&>(interpreter().global_object()).xhr_prototype());
|
||||
set_prototype(static_cast<WindowObject&>(global_object).xhr_prototype());
|
||||
}
|
||||
|
||||
XMLHttpRequestWrapper::~XMLHttpRequestWrapper()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue