Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testApplyAtJoinPoint.js
blob: bb7f219abf4e22e0c30ebe2d2a99aa79e3f154bf [
file
] [
log
] [
blame
]
var
isTrue
=
true
;
function
g
(
x
)
{
return
x
;
}
function
f
()
{
return
g
.
apply
(
null
,
isTrue
?
[
"happy"
]
:
arguments
);
}
for
(
var
i
=
0
;
i
<
18
;
++
i
)
assertEq
(
f
(
"sad"
),
"happy"
);