Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
constructFunctionSkippingEvalEnabledCheck-should-throw-out-of-memory-error.js
blob: ca10e4ada257f702dede02bd6396205976d67f56 [
file
] [
log
] [
blame
]
//@ skip if $memoryLimited
var
exception
;
try
{
Function
(
'a'
.
repeat
(
2147483623
));
}
catch
(
e
)
{
exception
=
e
;
}
if
(
exception
!=
"RangeError: Out of memory"
)
throw
"FAILED"
;