summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1205870.js
blob: 8340a797c660f3f2cac58cce6d7e3218b6addaf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

// Make sure that unboxed arrays can be created with all possible inline
// capacities for the different sizes.
var bools = [];
var ints = [];
var doubles = [];
for (var i = 0; i < 150; i++) {
    bools.push(false);
    ints.push(0);
    doubles.push(0.5);
}
for (var i = 0; i < 150; i++) {
    bools = bools.slice(1);
    ints = ints.slice(1);
    doubles = doubles.slice(1);
}