~ubuntu-branches/ubuntu/trusty/mozjs24/trusty-proposed

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/basic/missingArgTest.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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);