Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testFunApplyMisspeculation.js
blob: d572d4ff2098e67aad75cb11366561625e247734 [
file
] [
log
] [
blame
]
var
h
=
{
apply
:
function
()
{
return
"ponies"
;
}
};
function
f
()
{
var
x
=
3
;
g
=
function
()
{
return
++
x
};
return
h
.
apply
(
null
,
arguments
)
}
assertEq
(
f
(),
"ponies"
);