fix(ivy): pureFunction8 should update the right bindings (#22313)

PR Close #22313
This commit is contained in:
Marc Laval
2018-02-19 15:00:34 +01:00
committed by Victor Berchet
parent f6120c09e7
commit ee60bb5b36
2 changed files with 9 additions and 1 deletions

View File

@ -168,7 +168,7 @@ export function pureFunction8(
pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any, v6: any, v7: any, v8: any) => any,
exp1: any, exp2: any, exp3: any, exp4: any, exp5: any, exp6: any, exp7: any, exp8: any): any {
const different = bindingUpdated4(exp1, exp2, exp3, exp4);
return bindingUpdated4(exp1, exp2, exp3, exp4) || different ?
return bindingUpdated4(exp5, exp6, exp7, exp8) || different ?
checkAndUpdateBinding(pureFn(exp1, exp2, exp3, exp4, exp5, exp6, exp7, exp8)) :
consumeBinding();
}