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