Sign in
webkit
/
WebKit
/
b4234713c85383e00e81c500ff74ee340e8a262a
/
.
/
JSTests
/
microbenchmarks
/
to-number-constructor-only-number.js
blob: 04a945bb9f54e5b7723f44140132dca3b8fb1082 [
file
] [
log
] [
blame
]
function
test
(
value
)
{
return
Number
(
value
);
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
result
=
test
(
i
);
if
(
result
!==
9999
)
throw
new
Error
(`
bad result $
{
result
}`);