blob: 64770854a18b4f585f6fa707e563b29318def4a4 [file] [log] [blame]
// Skip on mips until https://bugs.webkit.org/show_bug.cgi?id=203737 is fixed.
//@ skip if $architecture == "mips"
//@ requireOptions("--maxPerThreadStackUsage=300000", "--exceptionStackTraceLimit=0", "--defaultErrorStackTraceLimit=0")
function bar(v) {
!v
foo();
}
function foo() {
eval(`bar(import(0));`);
}
var exception;
try {
foo();
} catch (e) {
exception = e;
}
if (exception != "RangeError: Maximum call stack size exceeded.")
throw "FAILED";