Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
fold-compare-greater-eq-symbols.js
blob: b6a50279217a9c4388716b68f8ed8928742ab7e6 [
file
] [
edit
]
function
shouldBe
(
a
,
b
)
{
if
(
a
!==
b
)
throw
new
Error
(`
Expected
$
{
b
}
but got $
{
a
}`);
}
let count
=
0
;
const
x
=
Symbol
();
for
(
let i
=
0
;
i
<
testLoopCount
;
i
++)
{
try
{
x
>=
x
;
}
catch
{
count
++;
}
}
shouldBe
(
count
,
testLoopCount
);