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