diff options
author | Michaël Zasso <targos@protonmail.com> | 2019-08-01 08:38:30 +0200 |
---|---|---|
committer | Michaël Zasso <targos@protonmail.com> | 2019-08-01 12:53:56 +0200 |
commit | 2dcc3665abf57c3607cebffdeeca062f5894885d (patch) | |
tree | 4f560748132edcfb4c22d6f967a7e80d23d7ea2c /deps/v8/test/mjsunit/keyed-has-ic.js | |
parent | 1ee47d550c6de132f06110aa13eceb7551d643b3 (diff) | |
download | android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.gz android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.tar.bz2 android-node-v8-2dcc3665abf57c3607cebffdeeca062f5894885d.zip |
deps: update V8 to 7.6.303.28
PR-URL: https://github.com/nodejs/node/pull/28016
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann (רפאל פלחי) <refack@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'deps/v8/test/mjsunit/keyed-has-ic.js')
-rw-r--r-- | deps/v8/test/mjsunit/keyed-has-ic.js | 34 |
1 files changed, 32 insertions, 2 deletions
diff --git a/deps/v8/test/mjsunit/keyed-has-ic.js b/deps/v8/test/mjsunit/keyed-has-ic.js index f0b95de2c6..ee15ea4859 100644 --- a/deps/v8/test/mjsunit/keyed-has-ic.js +++ b/deps/v8/test/mjsunit/keyed-has-ic.js @@ -405,12 +405,27 @@ for (test in tests) { return true; } - var ary = [0,1,2,3]; + var ary = [0, 1, 2, '3']; function testArray(ary) { assertTrue(test(ary, 1)); assertTrue(test(ary, 1)); } testArray(ary); + // Packed + // Non-extensible + var b = Object.preventExtensions(ary); + testArray(b); + + // Sealed + var c = Object.seal(ary); + testArray(c); + + // Frozen + var d = Object.freeze(ary); + testArray(d); + + // Holey + var ary = [, 0, 1, 2, '3']; // Non-extensible var b = Object.preventExtensions(ary); testArray(b); @@ -430,7 +445,7 @@ for (test in tests) { assertFalse(test(str, 0)); })(); -const heap_constant_ary = [0,1,2,3]; +const heap_constant_ary = [0,1,2,'3']; function testHeapConstantArray(heap_constant_ary) { @@ -450,6 +465,7 @@ function testHeapConstantArray(heap_constant_ary) { } testHeapConstantArray(heap_constant_ary); +// Packed // Non-extensible var b = Object.preventExtensions(heap_constant_ary); testHeapConstantArray(b); @@ -461,3 +477,17 @@ testHeapConstantArray(c); // Frozen var d = Object.freeze(heap_constant_ary); testHeapConstantArray(d); + +// Holey +const holey_heap_constant_ary = [,0,1,2,'3']; +// Non-extensible +var b = Object.preventExtensions(holey_heap_constant_ary); +testHeapConstantArray(b); + +// Sealed +var c = Object.seal(holey_heap_constant_ary); +testHeapConstantArray(c); + +// Frozen +var d = Object.freeze(holey_heap_constant_ary); +testHeapConstantArray(d); |