• Matthias Liedtke's avatar
    [mjsunit] assertEquals: Assert equality of non-enumerable properties too · 319af35d
    Matthias Liedtke authored
    assertEquals() compares objects by comparing each property for both
    objects. This was done by using Object.keys() which however only returns
    enumerable properties.
    With this change also non-enumerable properties are compared.
    
    Still, the comparison doesn't require the properties to be equal.
    So, if one property is marked enumerable in one object but not the
    other, the objects would still be considered equal.
    This could be adapted in a follow-up CL if desired.
    The prototype is still ignored for the comparison.
    
    Change-Id: I1bb9df055bfb764ac1c02d971ac6f4a50f4a98e8
    Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3876384
    Commit-Queue: Matthias Liedtke <mliedtke@chromium.org>
    Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#83058}
    319af35d
Name
Last commit
Last update
..
benchmarks Loading commit data...
bigint Loading commit data...
cctest Loading commit data...
common Loading commit data...
debugger Loading commit data...
debugging Loading commit data...
fuzzer Loading commit data...
fuzzilli Loading commit data...
inspector 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...
mkgrokdump Loading commit data...
mozilla Loading commit data...
test262 Loading commit data...
torque Loading commit data...
unittests Loading commit data...
wasm-api-tests Loading commit data...
wasm-js Loading commit data...
wasm-spec-tests Loading commit data...
webkit Loading commit data...
BUILD.gn Loading commit data...
OWNERS Loading commit data...