Sign in
webkit
/
WebKit
/
b387ed984cfa86e07321d6d915fc6d801afbcecc
/
.
/
JSTests
/
stress
/
json-stringified-overflow.js
blob: 841022e98bf00db11bcd0cdd615018f971e7f196 [
file
] [
log
] [
blame
]
//@ if $memoryLimited then skip else runDefault end
try
{
const
s
=
"123"
.
padStart
(
1073741823
);
JSON
.
stringify
(
s
);
}
catch
(
e
)
{
if
(
e
!=
"Error: Out of memory"
)
throw
e
;
}