blob: 55454418a316d5d9017396532f47b3b88dcfb14e [file] [log] [blame]
//@ runDefault("--softReservedZoneSize=16384", "--reservedZoneSize=0", "--useJIT=0", "--validateBytecode=1", "--maxPerThreadStackUsage=499712")
function runNearStackLimit(f) {
function t() {
try {
return t();
} catch (e) {
new class extends (class {}) {}();
return f();
}
}
return t();
}
function foo() {
new class extends (class {}) {}();
}
runNearStackLimit(() => { return foo(); });