• cbruni's avatar
    [keys] Trigger [[getOwnPropertyDescriptor]] trap on proxies for Object.keys · f4f06c50
    cbruni authored
    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
    
    Review-Url: https://codereview.chromium.org/2176113009
    Cr-Commit-Position: refs/heads/master@{#38199}
    f4f06c50
Name
Last commit
Last update
..
benchmarks Loading commit data...
cctest Loading commit data...
fuzzer Loading commit data...
inspector_protocol_parser_test Loading commit data...
intl Loading commit data...
js-perf-test Loading commit data...
memory Loading commit data...
message Loading commit data...
mjsunit Loading commit data...
mozilla Loading commit data...
preparser Loading commit data...
promises-aplus Loading commit data...
simdjs Loading commit data...
test262 Loading commit data...
unittests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
bot_default.gyp Loading commit data...
bot_default.isolate Loading commit data...
default.gyp Loading commit data...
default.isolate Loading commit data...
ignition.gyp Loading commit data...
ignition.isolate Loading commit data...
optimize_for_size.gyp Loading commit data...
optimize_for_size.isolate Loading commit data...
perf.gyp Loading commit data...
perf.isolate Loading commit data...