Browse Source

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

Linus Groh 4 năm trước cách đây
mục cha
commit
598842c5b7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Userland/Libraries/LibJS/Runtime/ProxyObject.cpp

+ 1 - 1
Userland/Libraries/LibJS/Runtime/ProxyObject.cpp

@@ -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 »).