Sign in
webkit
/
WebKit
/
90848d1a03498139e72a756e822580544ca9d408
/
.
/
JSTests
/
stress
/
missing-exception-check-in-json-stringifier-gap.js
blob: 6e51dfcdddb94deb636ae2d9c1bfbdd11e31e519 [
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
!=
"RangeError: Out of memory"
)
throw
"FAILED"
;