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