js/src/jit-test/tests/auto-regress/bug700127.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug700127.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +// Binary: cache/js-dbg-64-921e1db5cf11-linux
     1.5 +// Flags: -m -n -a
     1.6 +//
     1.7 +
     1.8 +function addThis() {}
     1.9 +function Integer( value ) {
    1.10 +  try {
    1.11 +    checkValue( value )
    1.12 +  } catch (e) {  }
    1.13 +}
    1.14 +function checkValue( value ) {
    1.15 +  if ( addThis() != value || value )
    1.16 +        throw value='foo';
    1.17 +  return value;
    1.18 +}
    1.19 +Integer( 3 );
    1.20 +Integer( NaN );

mercurial