summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/arityMismatchExtraArg.js
blob: 6803368acd08828d495073b04cc706e8739fa485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
function arityMismatchMissingArg(arg)
{
  for (var a = 0, i = 1; i < 10000; i *= 2) {
    a += i;
  }
  return a;
}

function arityMismatchExtraArg()
{
  return arityMismatchMissingArg(1, 2);
}
assertEq(arityMismatchExtraArg(), 16383);