summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1741635-2.js
blob: e16d77a139a94526c32457a4a9fee5217fdae013 (plain)
1
2
3
4
5
6
7
8
9
10
11
// |jit-test| --ion-range-analysis=off

function f(a, ...rest) {
  return rest.length;
}

with ({});

for (let i = 0; i < 1000; ++i) {
  assertEq(f(), 0);
}