Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testFunApplyMadness1.js
blob: dabc41be44e80c2b937d17ababad0ad8b835c573 [
file
] [
log
] [
blame
]
function
g
()
{
assertEq
(
false
,
true
)
}
var
ct
=
0
;
function
f
(
b
)
{
var
a
=
arguments
;
if
(
b
)
f
(
false
);
else
g
=
{
apply
:
function
(
x
,
y
)
{
++
ct
;
assertEq
(
x
,
null
);
assertEq
(
typeof
y
[
0
],
"boolean"
);
}
};
g
.
apply
(
null
,
a
);
}
f
(
true
);
assertEq
(
ct
,
2
);