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