repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
to-number-constructor-only-number.js
blob
04a945bb9f54e5b7723f44140132dca3b8fb1082
1
function
test
(
value
)
2
{
3
return
Number
(
value
);
4
}
5
6
var
result
=
0
;
7
for
(
var
i
=
0
;
i
<
1
e4
; ++
i
)
8
result
=
test
(
i
);
9
if
(
result
!==
9999
)
10
throw new
Error
(
`bad result
${result}
`
);