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