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