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.
 
 
 
 
 
 

31 lines
553 B

if (typeof print !== 'function') { print = console.log; }
function test() {
var i;
var src = 'x';
while (src.length < 65536) {
src = src + src;
}
src = '"' + src + '"';
for (i = 0; i < 1e3; i++) {
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
void eval(src);
}
}
try {
test();
} catch (e) {
print(e.stack || e);
throw e;
}