summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrays/to-spliced-dense-elements.js
blob: 05b2ab8dad094ea333dd495da0f74bb2e1d9fa50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test|

for (let i = 0; i < 1000; ++i) {
  let arr = [0];
  let result = arr.toSpliced(0, 0, 1, 2, 3);
  assertEq(result.length, 4);
}

for (let i = 0; i < 1000; ++i) {
  let arr = [0];
  let result = arr.toSpliced(1, 0, 1, 2, 3);
  assertEq(result.length, 4);
}