Sign in
webkit
/
WebKit
/
b0d7f9b249dd6483d6c7bc4f13c440c0842b7127
/
.
/
JSTests
/
microbenchmarks
/
empty-string-plus-int.js
blob: af23b588e61a945fa1d34b4d5e949ef9915db4b5 [
file
] [
log
] [
blame
]
function
foo
(
x
)
{
return
""
+
x
;
}
var
result
;
var
limit
=
100000
;
for
(
var
i
=
0
;
i
<
limit
;
++
i
)
result
=
foo
(
i
);
if
(
result
!=
String
(
limit
-
1
))
throw
"Error: bad result: "
+
result
;