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