File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ function Enumerator(Constructor, input) {
31
31
}
32
32
33
33
if ( isArray ( input ) ) {
34
- this . _input = input ;
35
34
this . length = input . length ;
36
35
this . _remaining = input . length ;
37
36
@@ -41,7 +40,7 @@ function Enumerator(Constructor, input) {
41
40
fulfill ( this . promise , this . _result ) ;
42
41
} else {
43
42
this . length = this . length || 0 ;
44
- this . _enumerate ( ) ;
43
+ this . _enumerate ( input ) ;
45
44
if ( this . _remaining === 0 ) {
46
45
fulfill ( this . promise , this . _result ) ;
47
46
}
@@ -55,11 +54,9 @@ function validationError() {
55
54
return new Error ( 'Array Methods must be provided an Array' ) ;
56
55
} ;
57
56
58
- Enumerator . prototype . _enumerate = function ( ) {
59
- let { length, _input } = this ;
60
-
61
- for ( let i = 0 ; this . _state === PENDING && i < length ; i ++ ) {
62
- this . _eachEntry ( _input [ i ] , i ) ;
57
+ Enumerator . prototype . _enumerate = function ( input ) {
58
+ for ( let i = 0 ; this . _state === PENDING && i < input . length ; i ++ ) {
59
+ this . _eachEntry ( input [ i ] , i ) ;
63
60
}
64
61
} ;
65
62
You can’t perform that action at this time.
0 commit comments