You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
523 B

/*
* Test addition when it involves a NaN, which matters on x86.
*/
if (typeof print !== 'function') { print = console.log; }
function test() {
var i;
var x = 0 / 0;
var y = 234; // fastint
var t;
for (i = 0; i < 1e6; i++) {
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
t = x + y;
}
}
try {
test();
} catch (e) {
print(e.stack || e);
throw e;
}