@@ -637,7 +637,7 @@ function createArrayIterativeMethod (name, useTruthy = false) {
637
637
638
638
return selector [ name ] ( ( i , index ) => {
639
639
const result = engine . run ( mapper , i , {
640
- above : [ { item : selector , index } , context , above ]
640
+ above : [ { iterator : selector , index } , context , above ]
641
641
} )
642
642
return useTruthy ? engine . truthy ( result ) : result
643
643
} )
@@ -651,7 +651,7 @@ function createArrayIterativeMethod (name, useTruthy = false) {
651
651
} ) ) || [ ]
652
652
return asyncIterators [ name ] ( selector , ( i , index ) => {
653
653
const result = engine . run ( mapper , i , {
654
- above : [ { item : selector , index } , context , above ]
654
+ above : [ { iterator : selector , index } , context , above ]
655
655
} )
656
656
return useTruthy ? engine . truthy ( result ) : result
657
657
} )
@@ -669,16 +669,16 @@ function createArrayIterativeMethod (name, useTruthy = false) {
669
669
}
670
670
671
671
const method = build ( mapper , mapState )
672
- const aboveArray = method . aboveDetected ? buildState . compile `[{ item: null , index: x }, context, above]` : buildState . compile `null`
672
+ const aboveArray = method . aboveDetected ? buildState . compile `[{ iterator: z , index: x }, context, above]` : buildState . compile `null`
673
673
674
674
if ( async ) {
675
675
if ( ! isSyncDeep ( mapper , buildState . engine , buildState ) ) {
676
676
buildState . detectAsync = true
677
- return buildState . compile `await asyncIterators[${ name } ](${ selector } || [], async (i, x) => ${ method } (i, x, ${ aboveArray } ))`
677
+ return buildState . compile `await asyncIterators[${ name } ](${ selector } || [], async (i, x, z ) => ${ method } (i, x, ${ aboveArray } ))`
678
678
}
679
679
}
680
680
681
- return buildState . compile `(${ selector } || [])[${ name } ]((i, x) => ${ method } (i, x, ${ aboveArray } ))`
681
+ return buildState . compile `(${ selector } || [])[${ name } ]((i, x, z ) => ${ method } (i, x, ${ aboveArray } ))`
682
682
} ,
683
683
traverse : false
684
684
}
0 commit comments