Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
jaeger
/
recompile
/
bug671943-2.js
blob: 7b262b9b67553e00eb298ea656c69d4c7c52c2c0 [
file
] [
log
] [
blame
]
if
(
typeof
schedulegc
!=
'undefined'
)
schedulegc
(
11
);
function
foo
(
n
)
{
if
(
n
==
10
)
foo
.
apply
=
function
(
a
,
b
)
{
return
b
[
0
];
}
return
n
;
}
function
bar
()
{
return
foo
.
apply
(
null
,
arguments
);
}
for
(
var
i
=
0
;
i
<
20
;
i
++)
assertEq
(
bar
(
i
),
i
);