mirror of https://github.com/tc39/test262.git
18 lines
463 B
JavaScript
18 lines
463 B
JavaScript
//@ 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(); });
|