Sign in
webkit
/
WebKit
/
6e2a77f8cb18067e3ef1240a3602dba85379b5cd
/
.
/
JSTests
/
stress
/
json-stringified-overflow-2.js
blob: 2517e7ff91d6b8149c4d8ef7e37ff0dc8f778a0a [
file
] [
log
] [
blame
]
//@ if $memoryLimited then skip else runDefault end
try
{
const
s
=
"a"
.
padStart
(
0x80000000
-
1
);
JSON
.
stringify
(
s
);
}
catch
(
e
)
{
if
(
e
!=
"Error: Out of memory"
)
throw
e
;
}