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