summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/inline/scripted-04.js
blob: d2f8535bcfaad5cdf89d33594b3102dfadb960fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
function adder(x, y) {
  return x + y;
}

function foo(x) {
  for (var i = 0; i < 100; i++)
    var a = adder(x, i);
  return a;
}

var q = foo(0x7ffffff0);
assertEq(q, 2147483731);