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