flip list.walk passed function arguments

This commit is contained in:
Folkert 2021-10-10 12:35:03 +02:00
parent 94e8c62613
commit ebcee4021c
2 changed files with 6 additions and 6 deletions

View file

@ -643,8 +643,8 @@ impl<'a> Context<'a> {
// borrow data structure based on first argument of the folded function
// borrow the default based on second argument of the folded function
let borrows = [
function_ps[0].borrow,
function_ps[1].borrow,
function_ps[0].borrow,
FUNCTION,
CLOSURE_DATA,
];
@ -656,7 +656,7 @@ impl<'a> Context<'a> {
b_live_vars,
);
let b = decref_if_owned!(function_ps[0].borrow, arguments[0], b);
let b = decref_if_owned!(function_ps[1].borrow, arguments[0], b);
let v = create_call!(function_ps.get(2));