haikuwebkit/JSTests/stress/constructFunctionSkippingEv...

13 lines
190 B
JavaScript

//@ skip if $memoryLimited
var exception;
try {
Function('a'.repeat(2147483623));
} catch (e) {
exception = e;
}
if (exception != "RangeError: Out of memory")
throw "FAILED";