File tree 2 files changed +6
-4
lines changed 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,15 @@ export function __exportStar(m, exports) {
108
108
}
109
109
110
110
export function __values ( o ) {
111
- var m = typeof Symbol === "function" && o [ Symbol . iterator ] , i = 0 ;
111
+ var s = typeof Symbol === "function" && Symbol . iterator , m = s && o [ s ] , i = 0 ;
112
112
if ( m ) return m . call ( o ) ;
113
- return {
113
+ if ( o && typeof o . length === "number" ) return {
114
114
next : function ( ) {
115
115
if ( o && i >= o . length ) o = void 0 ;
116
116
return { value : o && o [ i ++ ] , done : ! o } ;
117
117
}
118
118
} ;
119
+ throw new TypeError ( s ? "Object is not iterable." : "Symbol.iterator is not defined." ) ;
119
120
}
120
121
121
122
export function __read ( o , n ) {
Original file line number Diff line number Diff line change @@ -145,14 +145,15 @@ var __importDefault;
145
145
} ;
146
146
147
147
__values = function ( o ) {
148
- var m = typeof Symbol === "function" && o [ Symbol . iterator ] , i = 0 ;
148
+ var s = typeof Symbol === "function" && Symbol . iterator , m = s && o [ s ] , i = 0 ;
149
149
if ( m ) return m . call ( o ) ;
150
- return {
150
+ if ( o && typeof o . length === "number" ) return {
151
151
next : function ( ) {
152
152
if ( o && i >= o . length ) o = void 0 ;
153
153
return { value : o && o [ i ++ ] , done : ! o } ;
154
154
}
155
155
} ;
156
+ throw new TypeError ( s ? "Object is not iterable." : "Symbol.iterator is not defined." ) ;
156
157
} ;
157
158
158
159
__read = function ( o , n ) {
You can’t perform that action at this time.
0 commit comments