summaryrefslogtreecommitdiff
path: root/js/src/jit-test/tests/auto-regress/bug700127.js
blob: 4ef82fb249ed988c54feb8c5903d21c13219334a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Binary: cache/js-dbg-64-921e1db5cf11-linux
// Flags: -m -n -a
//

function addThis() {}
function Integer( value ) {
  try {
    checkValue( value )
  } catch (e) {  }
}
function checkValue( value ) {
  if ( addThis() != value || value )
        throw value='foo';
  return value;
}
Integer( 3 );
Integer( NaN );