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