Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testCallPick.js
blob: 7f1d9ade00dd232e5ba9939df849e8e989bbb675 [
file
] [
log
] [
blame
]
function
testCallPick
()
{
function
g
(
x
,
a
)
{
x
.
f
();
}
var
x
=
[];
x
.
f
=
function
()
{
}
var
y
=
[];
y
.
f
=
function
()
{
}
var
z
=
[
x
,
x
,
x
,
x
,
x
,
y
,
y
,
y
,
y
,
y
];
for
(
var
i
=
0
;
i
<
10
;
++
i
)
g
.
call
(
this
,
z
[
i
],
""
);
return
true
;
}
assertEq
(
testCallPick
(),
true
);