Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
string-concat-object.js
blob: 7243c41d994dd4b360bcfdf83c656c537ccffeef [
file
] [
log
] [
blame
]
function
foo
(
a
)
{
return
"foo"
+
new
String
(
a
)
+
"bar"
;
}
var
result
;
for
(
var
i
=
0
;
i
<
100000
;
++
i
)
result
=
foo
(
"hello"
);
if
(
result
!=
"foohellobar"
)
throw
"Error: bad result: "
+
result
;