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