summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/inline/doubleArg.js
blob: bd4422599824fdeeae942d0d7d7bca266c4f5015 (plain)
1
2
3
4
5
6
7
8
9
10
function foo(x, y) {
  if (y < 0) {}
  return x * 1000;
}
function bar(x, y) {
  while (false) {}
  assertEq(foo(x, false), 10500);
  assertEq(foo(y, false), 11000);
}
bar(10.5, 11);