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

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:1a71fff47703
1 function arity1(x)
2 {
3 return (x == undefined) ? 1 : 0;
4 }
5 function missingArgTest() {
6 var q;
7 for (var i = 0; i < 10; i++) {
8 q = arity1();
9 }
10 return q;
11 }
12 assertEq(missingArgTest(), 1);

mercurial