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