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