mirror of https://github.com/tc39/test262.git
23 lines
327 B
JavaScript
23 lines
327 B
JavaScript
//@ runDefault("--forceEagerCompilation=1", "--useConcurrentJIT=0")
|
|
|
|
function foo(x) {
|
|
if (x) {
|
|
return;
|
|
}
|
|
let obj = {
|
|
a: 0,
|
|
b: 0
|
|
};
|
|
foo(1);
|
|
let keys = Object.keys(obj);
|
|
foo();
|
|
keys.length
|
|
}
|
|
|
|
try {
|
|
foo();
|
|
} catch(e) {
|
|
if (e != "RangeError: Maximum call stack size exceeded.")
|
|
throw "FAILED";
|
|
}
|