Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
microbenchmarks
/
intl-constructor-collator.js
blob: ca863dd1d1795e31e7a84d818331cd9f76037e7e [
file
] [
edit
]
function
test
()
{
let count
=
0
;
for
(
let i
=
0
;
i
<
1e4
;
++
i
)
count
+=
new
Intl
.
Collator
(
"en-US"
).
compare
!==
undefined
;
return
count
;
}
const
result
=
test
();
if
(
result
!==
1e4
)
throw
new
Error
(
"Bad result: "
+
result
);