Sign in
webkit
/
WebKit
/
0b12fa5591e07a09b635ce1b9a87f0e7c691d55a
/
.
/
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
;
}