blob: 46f8e3165b144f6aa61e03996a5f5e8484167823 [file] [log] [blame]
//@ skip if $memoryLimited
//@ runDefault
try {
RegExp({toString: ()=> ''.padEnd(2**31-1, 10 .toLocaleString()) });
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";