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