Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testBug558446.js
blob: 8560de094796867c39c2ddce2119ac20e03123d0 [
file
] [
log
] [
blame
]
function
f
(
a
,
b
)
{
return
a
+
" "
+
b
;
}
for
(
var
i
=
0
;
i
<
10
;
++
i
)
{
var
s
=
''
;
var
a
=
{
toString
:
function
()
{
s
+=
'a'
;
return
'a'
;
}};
var
b
=
{
toString
:
function
()
{
s
+=
'b'
;
return
'b'
;
}};
f
(
a
,
b
);
assertEq
(
s
,
'ab'
);
}