summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/args-mutate-proto-4.js
blob: d971669ca84b5cf1d07249a2013e81f9ade5f2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function outOfBounds() {
  var N = 100;
  for (var i = 0; i <= N; ++i) {
    if (i === N) {
      Object.prototype[0] = "pass";
    }

    var arg = arguments[0];

    assertEq(arg, i !== N ? undefined : "pass");
  }
}
outOfBounds();