diff options
Diffstat (limited to 'deps/v8/test/mjsunit/compiler/array-length.js')
-rw-r--r-- | deps/v8/test/mjsunit/compiler/array-length.js | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/deps/v8/test/mjsunit/compiler/array-length.js b/deps/v8/test/mjsunit/compiler/array-length.js index aa2210893c..bc1ccf3743 100644 --- a/deps/v8/test/mjsunit/compiler/array-length.js +++ b/deps/v8/test/mjsunit/compiler/array-length.js @@ -56,18 +56,36 @@ function MainTest() { } MainTest(); +// Packed // Non-extensible, sealed, frozen a0 = Object.preventExtensions([]); -a2 = Object.seal([1,2]); -a5 = Object.freeze([1,2,3,4,5]); +a2 = Object.seal([1,'2']); +a5 = Object.freeze([1,2,'3',4,5]); MainTest(); a0 = Object.seal([]); -a2 = Object.freeze([1,2]); -a5 = Object.preventExtensions([1,2,3,4,5]); +a2 = Object.freeze([1,'2']); +a5 = Object.preventExtensions([1,2,'3',4,5]); MainTest(); a0 = Object.freeze([]); -a2 = Object.preventExtensions([1,2]); -a5 = Object.seal([1,2,3,4,5]); +a2 = Object.preventExtensions([1,'2']); +a5 = Object.seal([1,2,'3',4,5]); +MainTest(); + +// Holey +// Non-extensible, sealed, frozen +a0 = Object.preventExtensions([]); +a2 = Object.seal([,'2']); +a5 = Object.freeze([,2,'3',4,5]); +MainTest(); + +a0 = Object.seal([]); +a2 = Object.freeze([,'2']); +a5 = Object.preventExtensions([,2,'3',4,5]); +MainTest(); + +a0 = Object.freeze([]); +a2 = Object.preventExtensions([,'2']); +a5 = Object.seal([,2,3,4,5]); MainTest(); |