Sign in
cobalt
/
cobalt
/
da5c4f09a295755b8923113581bebdc12153e6dd
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
basic
/
testCallApplySpeculationFailed.js
blob: f1b127839f87b3695531d566337d8890d2a8f120 [
file
] [
log
] [
blame
]
function
foo
(
n
)
{
return
n
;
}
foo
.
apply
=
function
(
a
,
b
)
{
return
b
[
0
];
}
function
bar
(
value
)
{
return
foo
.
apply
(
null
,
arguments
);
}
for
(
var
i
=
1
;
i
<
4
;
i
++)
assertEq
(
bar
(
i
),
i
);