mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 15:19:42 +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
Notes:
sideshowbarker
2024-07-19 01:08:24 +09:00
Author: https://github.com/linusg
Commit: 48c19cdb06
Pull-request: https://github.com/SerenityOS/serenity/pull/4279
9 changed files with 33 additions and 110 deletions
|
@ -59,7 +59,7 @@ bool static is_compatible_property_descriptor(bool is_extensible, PropertyDescri
|
|||
|
||||
ProxyObject* ProxyObject::create(GlobalObject& global_object, Object& target, Object& handler)
|
||||
{
|
||||
return global_object.heap().allocate<ProxyObject>(global_object, target, handler, *global_object.proxy_prototype());
|
||||
return global_object.heap().allocate<ProxyObject>(global_object, target, handler, *global_object.object_prototype());
|
||||
}
|
||||
|
||||
ProxyObject::ProxyObject(Object& target, Object& handler, Object& prototype)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue