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