blob: 287e0ed6f09edbbd0c1c0d6a0f08fef52ed6db76 [file] [log] [blame]
//@ runFTLNoCJIT("--maxPerThreadStackUsage=400000")
function runNearStackLimit(f) {
function t() {
try {
return t();
} catch (e) {
return f();
}
}
return t()
}
function foo(a, b) {
return [{
name: b + "" + a
}];
}
var exception;
try {
__v_25012 = [].concat(
foo(1, []),
runNearStackLimit(() => {
return foo("bla", Symbol.search);
})
);
} catch (e) {
exception = e;
}
if (exception != "TypeError: Cannot convert a symbol to a string")
throw "FAILED";