Debian Codegraph @

js/src/jit-test/tests/basic/bug1205870.js

raw
1
2 // Make sure that unboxed arrays can be created with all possible inline
3 // capacities for the different sizes.
4 var bools = [];
5 var ints = [];
6 var doubles = [];
7 for (var i = 0; i < 150; i++) {
8 bools.push(false);
9 ints.push(0);
10 doubles.push(0.5);
11 }
12 for (var i = 0; i < 150; i++) {
13 bools = bools.slice(1);
14 ints = ints.slice(1);
15 doubles = doubles.slice(1);
16 }