Sign in
webkit
/
WebKit
/
1f18bfe1d675d641e5195ccba1e744a16360cc5b
/
.
/
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"
;