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