2019-01-17 20:35:14 +01:00
|
|
|
//@ skip if $memoryLimited
|
2018-12-20 20:20:35 +01:00
|
|
|
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";
|