mirror of https://github.com/tc39/test262.git
15 lines
220 B
JavaScript
15 lines
220 B
JavaScript
|
//@ skip if $memoryLimited
|
||
|
|
||
|
try {
|
||
|
var a0 = '\ud801';
|
||
|
var a1 = [];
|
||
|
a2 = a0.padEnd(2147483644,'x');
|
||
|
a1[a2];
|
||
|
} catch (e) {
|
||
|
exception = e;
|
||
|
}
|
||
|
|
||
|
if (exception != "Error: Out of memory")
|
||
|
throw "FAILED";
|
||
|
|