blob: d2ccff94b17e769e1140656a27b2b807c3fc7732 [file] [log] [blame]
//@ skip if $memoryLimited
//@ slow!
//@ runDefault
var exception;
try {
eval("JSON.parse(''.padStart(2 ** 31 - 1, 'a'))");
} catch (e) {
exception = e;
}
if (exception != 'SyntaxError: JSON Parse error: Unexpected identifier "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa..."')
throw "FAIL: actual " + exception;