Description[keys] Trigger [[getOwnPropertyDescriptor]] trap on proxies for Object.keys
This CL fixes a long-standing bug with Object.keys where the enumerability
check was omitted if the [ownKeys] trap is not present. The only distinction the
KeyAccumulator needs is whether it collects keys for for-in (is_for_in_) or not.
ForInFilter performs a separate step to filter out non-enumerable keys later-on
while in all the other use-cases we have to filter keys.
BUG=v8:1543, v8:5250
Committed: https://crrev.com/f4f06c50298b275b531e510f7521df48778c2b0a
Cr-Commit-Position: refs/heads/master@{#38199}
Patch Set 1 #
Total comments: 5
Patch Set 2 : addressing comments #Patch Set 3 : cleaning up test #
Total comments: 1
Patch Set 4 : fixing comments #Patch Set 5 : rebasing #Patch Set 6 : eval scoping is hard #
Messages
Total messages: 22 (12 generated)
|