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