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