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