blob: defb116cd3d13fd51361b6718f919aaded3dceb3 [file] [log] [blame]
//@ skip if $memoryLimited or $buildType == "debug"
//@ runDefault
//@ slow!
try {
var v1 = "AAAAAAAAAAA";
for(var i = 0; i < 27; i++)
v1 = v1 + v1;
var v2;
var v3 = RegExp.prototype.toString.call({source:v1,flags:v1});
v3 += v1;
v2 += v3.localeCompare(v1);
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";