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