diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es8/object-entries.js')
-rw-r--r-- | deps/v8/test/mjsunit/es8/object-entries.js | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/deps/v8/test/mjsunit/es8/object-entries.js b/deps/v8/test/mjsunit/es8/object-entries.js index 51ce4692e4..f119cfc113 100644 --- a/deps/v8/test/mjsunit/es8/object-entries.js +++ b/deps/v8/test/mjsunit/es8/object-entries.js @@ -144,29 +144,11 @@ function TestOrderWithDuplicates(withWarmup) { }); if (withWarmup) { - for (const key in P) {} + for (const key in O) {}; + try { for (const key in P) {} } catch {}; } - log = []; - assertEquals([ - ["a", 1], - ["a", 1], - ["456", 123], - ["456", 123] - ], Object.entries(P)); - assertEquals([ - "[[OwnPropertyKeys]]", - "[[GetOwnProperty]](\"a\")", - "[[Get]](\"a\")", - "[[GetOwnProperty]](\"a\")", - "[[Get]](\"a\")", - "[[GetOwnProperty]](\"456\")", - "[[Get]](\"456\")", - "[[GetOwnProperty]](\"HIDDEN\")", - "[[GetOwnProperty]](\"HIDDEN\")", - "[[GetOwnProperty]](\"456\")", - "[[Get]](\"456\")" - ], log); + assertThrows(() => Object.entries(P), TypeError); } TestOrderWithDuplicates(); TestOrderWithDuplicates(true); |