blob: 46b87511b0922aaa6bc84d6330f0c75fee42c35e [file] [log] [blame]
//@ requireOptions("--maxPerThreadStackUsage=262144")
var exception;
try {
var i = 25000;
var args = [];
var v3;
while (i--)
args[i] = "a";
var argsList = args.join();
setter = Function(argsList, "");
Object.defineProperty(args, '0', {set: setter});
args.sort();
} catch (e) {
exception = e;
}
if (exception != "RangeError: Maximum call stack size exceeded.")
throw "FAILED";