js/src/jit-test/tests/basic/arityMismatchExtraArg.js

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     1 function arityMismatchMissingArg(arg)
     2 {
     3   for (var a = 0, i = 1; i < 10000; i *= 2) {
     4     a += i;
     5   }
     6   return a;
     7 }
     9 function arityMismatchExtraArg()
    10 {
    11   return arityMismatchMissingArg(1, 2);
    12 }
    13 assertEq(arityMismatchExtraArg(), 16383);

mercurial