LibJS: Fix bogus target.[[OwnPropertyKeys]]() call in Proxy

This commit is contained in:
Linus Groh 2021-07-05 17:22:28 +01:00
parent 34c28b981a
commit 598842c5b7
Notes: sideshowbarker 2024-07-18 10:22:10 +09:00

View File

@ -789,7 +789,7 @@ MarkedValueList ProxyObject::internal_own_property_keys() const
// 6. If trap is undefined, then
if (!trap) {
// a. Return ? target.[[OwnPropertyKeys]]().
return Object::internal_own_property_keys();
return m_target.internal_own_property_keys();
}
// 7. Let trapResultArray be ? Call(trap, handler, « target »).