File tree 2 files changed +9
-9
lines changed
2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,10 @@ export function processReply(
230
230
);
231
231
return serializePromiseID(promiseId);
232
232
}
233
+ if ( isArray ( value ) ) {
234
+ // $FlowFixMe[incompatible-return]
235
+ return value ;
236
+ }
233
237
// TODO: Should we the Object.prototype.toString.call() to test for cross-realm objects?
234
238
if (value instanceof FormData) {
235
239
if ( formData === null ) {
@@ -266,10 +270,6 @@ export function processReply(
266
270
formData . append ( formFieldPrefix + setId , partJSON ) ;
267
271
return serializeSetID ( setId ) ;
268
272
}
269
- if (isArray(value)) {
270
- // $FlowFixMe[incompatible-return]
271
- return value ;
272
- }
273
273
const iteratorFn = getIteratorFn(value);
274
274
if (iteratorFn) {
275
275
return Array . from ( ( value : any ) ) ;
Original file line number Diff line number Diff line change @@ -1049,6 +1049,11 @@ function resolveModelToJSON(
1049
1049
return ( undefined : any ) ;
1050
1050
}
1051
1051
1052
+ if ( isArray ( value ) ) {
1053
+ // $FlowFixMe[incompatible-return]
1054
+ return value ;
1055
+ }
1056
+
1052
1057
if ( value instanceof Map ) {
1053
1058
return serializeMap ( request , value ) ;
1054
1059
}
@@ -1110,11 +1115,6 @@ function resolveModelToJSON(
1110
1115
}
1111
1116
}
1112
1117
1113
- if ( isArray ( value ) ) {
1114
- // $FlowFixMe[incompatible-return]
1115
- return value ;
1116
- }
1117
-
1118
1118
const iteratorFn = getIteratorFn ( value ) ;
1119
1119
if ( iteratorFn ) {
1120
1120
return Array . from ( ( value : any ) ) ;
You can’t perform that action at this time.
0 commit comments