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