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.
 
 
 
 
 
 

46 lines
1.9 KiB

/*
* Fastint equality comparison.
*/
function test() {
var i, x, y;
x = 1; y = 2;
for (i = 0; i < 1e6; i++) {
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
void (x === y); void (x === y); void (x === y); void (x === y); void (x === y);
}
}
try {
test();
} catch (e) {
print(e.stack || e);
throw e;
}