mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
13 lines
230 B
JavaScript
13 lines
230 B
JavaScript
//@ skip if $memoryLimited
|
|
var exception;
|
|
try {
|
|
bar = '2.3023e-320'
|
|
foo = bar.padEnd(2147483644, 1);
|
|
foo(true, 1).value;
|
|
} catch (e) {
|
|
exception = e;
|
|
}
|
|
|
|
if (exception != "Error: Out of memory")
|
|
throw "FAILED";
|