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

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

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