mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +00:00
LibJS: Remove ProxyPrototype
Proxy is an "exotic object" and doesn't have its own prototype. Use the regular object prototype instead, but most stuff is happening on the target object anyway. :^)
This commit is contained in:
parent
78f1b5e359
commit
48c19cdb06
9 changed files with 33 additions and 110 deletions
|
@ -87,7 +87,7 @@ void WindowObject::initialize()
|
|||
m_xhr_prototype = heap().allocate<XMLHttpRequestPrototype>(*this, *this);
|
||||
m_xhr_constructor = heap().allocate<XMLHttpRequestConstructor>(*this, *this);
|
||||
m_xhr_constructor->define_property("prototype", m_xhr_prototype, 0);
|
||||
add_constructor("XMLHttpRequest", m_xhr_constructor, *m_xhr_prototype);
|
||||
add_constructor("XMLHttpRequest", m_xhr_constructor, m_xhr_prototype);
|
||||
}
|
||||
|
||||
WindowObject::~WindowObject()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue