Sign in
cobalt
/
cobalt
/
c73ce7d5dfce7ae20bcc30efc5f220e0fbac12b1
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
ion
/
bug706699.js
blob: 26370f39769eb5655b8208b18d536d12241d81eb [
file
] [
log
] [
blame
]
// |jit-test| error: 2
function
g
(
x
,
y
)
{
return
x
+
y
;
}
function
f
(
g
,
x
,
y
)
{
// return x + y;
return
g
(
x
,
y
);
}
assertEq
(
g
(
4
,
5
),
9
);
obj
=
{
valueOf
:
function
()
{
throw
2
;
}
};
print
(
f
(
g
,
obj
,
2
));