Sign in
webkit
/
WebKit
/
77b63b8e6a326c64f4e14dec31520d24b21e7c7f
/
.
/
JSTests
/
microbenchmarks
/
strcat-length-const.js
blob: 87e2f7b1ff56f75c0e4d2434bbdc141ed2b1a4b5 [
file
] [
log
] [
blame
]
function
foo
(
a
,
b
)
{
return
(
a
+
b
).
length
;
}
function
bar
()
{
return
foo
(
"hello "
,
"world!"
);
}
noInline
(
bar
);
var
result
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
=
bar
();
if
(
result
!=
"hello world!"
.
length
)
throw
"Error: bad result: "
+
result
;