Sign in
webkit
/
WebKit
/
e1a82001cfdab62c438e943f37ce20f74c8e0820
/
.
/
JSTests
/
stress
/
missing-exception-check-in-string-lastIndexOf.js
blob: 7307a8f583d93c1c99f4e9ae6c7fe7e795f0d93e [
file
] [
log
] [
blame
]
const
s1
=
(-
1
).
toLocaleString
().
padEnd
(
2
**
31
-
1
,
'aa'
);
try
{
s1
.
lastIndexOf
();
}
catch
(
e
)
{
exception
=
e
;
}
if
(
exception
!=
"Error: Out of memory"
)
throw
"FAILED"
;