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