Sign in
webkit
/
WebKit
/
38af2d11a53891d36db2adc946c621e143cf63f2
/
.
/
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
}`);