Sign in
webkit
/
WebKit
/
4ae349a8f8cbe5c18f6b8f2f24277ba5b8cf7e08
/
.
/
JSTests
/
microbenchmarks
/
string-concat-simple.js
blob: 6f662dc4145d27b856b99436d0db2fe065120ca7 [
file
] [
log
] [
blame
]
function
foo
(
a
)
{
return
"foo"
+
a
+
"bar"
;
}
var
result
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
=
foo
(
"hello"
);
if
(
result
!=
"foohellobar"
)
throw
"Error: bad result: "
+
result
;