blob: a8f17d87dca869e45f5a19157dbbc9b8febd4ed5 [file] [log] [blame]
//@ skip if $memoryLimited
try {
var a0 = '\ud801';
var a1 = [];
a2 = a0.padEnd(2147483644,'x');
a1[a2];
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";