summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/argumentsOptimize-1.js
blob: 6ee2c6af142934519cbec57ab62d4cf3ec1f46d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

function bar() {
  foo.arguments.length = 10;
}

function foo(x) {
  var a = arguments;
  var n = 0;
  bar();
  assertEq(x, 5);
  assertEq(a.length, 1);
}

foo(5);