Sign in
webkit
/
WebKit
/
b4234713c85383e00e81c500ff74ee340e8a262a
/
.
/
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
;