summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/setArgumentsLength2.js
blob: 2dcb1742425861fce6870c94389f2af2eb952e9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// don't crash

var q;

function f() {
  while (arguments.length > 0) {
    q = arguments[arguments.length-1];
    arguments.length--;
  }
}

f(1, 2, 3, 4, 5);