[Webkit-unassigned] [Bug 203818] New: Proxy's [[OwnPropertyKeys]] is incorrect in DontEnumPropertiesMode::Exclude

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 4 11:03:01 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=203818

            Bug ID: 203818
           Summary: Proxy's [[OwnPropertyKeys]] is incorrect in
                    DontEnumPropertiesMode::Exclude
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

1. If Object.keys is called on Proxy w/o "ownKeys" trap, filtering DontEnum properties should be observed by "getOwnPropertyDescriptor" trap.

ECMA262:
  https://tc39.es/ecma262/#sec-enumerableownpropertynames (step 4)

Test262:
  https://test262.report/browse/built-ins/Object/keys/property-traps-order-with-proxied-array.js

2. If Object.keys is called on Proxy with "ownKeys" trap, non-enumerable properties of Proxy's target are ignored during invariants validation.

ECMA262:
  https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-ownpropertykeys (step 11)

Test262:
  https://test262.report/browse/built-ins/Object/keys/proxy-non-enumerable-prop-invariant-1.js
  https://test262.report/browse/built-ins/Object/keys/proxy-non-enumerable-prop-invariant-2.js

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191104/73938bb4/attachment-0001.htm>


More information about the webkit-unassigned mailing list