Sign in
webkit
/
WebKit
/
fe3f8a9f58c921838bd3a920db5f85be838171cd
/
.
/
JSTests
/
stress
/
missing-exception-check-in-json-stringifier-gap.js
blob: 6d43bff7415d961652219aebfcb3002ff61a5c1f [
file
] [
log
] [
blame
]
//@ skip if $memoryLimited
//@ runDefault
const
s0
=
(
10
).
toLocaleString
();
const
s1
=
s0
.
padStart
(
2
**
31
-
1
,
'aa'
);
try
{
JSON
.
stringify
(
0
,
undefined
,
s1
);
}
catch
(
e
)
{
exception
=
e
;
}
if
(
exception
!=
"Error: Out of memory"
)
throw
"FAILED"
;