2018-12-15 20:17:28 +01:00
|
|
|
//@ skip if $memoryLimited or $buildType == "debug"
|
2019-01-17 20:35:14 +01:00
|
|
|
//@ runDefault("--useLLInt=false", "--forceCodeBlockToJettisonDueToOldAge=true", "--maxPerThreadStackUsage=200000", "--exceptionStackTraceLimit=1", "--defaultErrorStackTraceLimit=1")
|
2018-12-15 20:17:28 +01:00
|
|
|
|
|
|
|
let foo = 'let a';
|
|
|
|
for (let i = 0; i < 400000; i++)
|
|
|
|
foo += ',a' + i;
|
|
|
|
|
|
|
|
var exception;
|
|
|
|
try {
|
|
|
|
new Function(foo)();
|
|
|
|
} catch (e) {
|
|
|
|
exception = e;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (exception != "RangeError: Maximum call stack size exceeded.")
|
|
|
|
throw "FAILED";
|