summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/argumentsPassedToBuiltin.js
blob: d8edfffffa4b0c606ec28a210e7fe9a3a05f06a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// bug 504797

function f() {
  g(arguments, 1);
}

function g(a, b) {
  var s = Array.prototype.slice.call(a, b);
  assertEq(s[0] == undefined, false);
}

for (var i = 0; i < 10; ++i) {
  f(1, 2, 3, 4);
}