mirror of https://github.com/tc39/test262.git
28 lines
388 B
JavaScript
28 lines
388 B
JavaScript
|
//@ requireOptions("--maxPerThreadStackUsage=1572864")
|
||
|
|
||
|
function foo(a, b, c) {
|
||
|
try {
|
||
|
throw new Error();
|
||
|
} catch {
|
||
|
hello();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
function Bar(d, e) {
|
||
|
hello();
|
||
|
}
|
||
|
|
||
|
function hello(f) {
|
||
|
new Bar(0);
|
||
|
};
|
||
|
|
||
|
var exception;
|
||
|
try {
|
||
|
foo();
|
||
|
} catch(e) {
|
||
|
exception = e;
|
||
|
}
|
||
|
|
||
|
if (exception != "RangeError: Maximum call stack size exceeded.")
|
||
|
throw "FAILED";
|