Sign in
webkit
/
WebKit
/
ff4cb3c2323f3937e96e08f4f6fbe6c7755f9da5
/
.
/
JSTests
/
microbenchmarks
/
string-cons-repeat.js
blob: 7251a2e87e95a573a7e6f74fb78092be48172b59 [
file
] [
log
] [
blame
]
function
foo
(
a
)
{
return
new
String
(
a
);
}
var
result
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
=
foo
(
"hello"
);
if
(
result
!=
"hello"
)
throw
new
"Error: bad result: "
+
result
;