haikuwebkit/JSTests/stress/read-dead-bytecode-locals-i...

20 lines
269 B
JavaScript

//@ runDefault("--useConcurrentJIT=0")
function bar(c) {
if (c > 1) {
bar(parseInt(c * 2))
}
c *= 2;
}
function foo() {
var i = 0;
if (''.match(/^/)) {
while(i < 1e5) {
bar(2);
++i;
}
}
}
foo();