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