@@ -391,7 +391,7 @@ function executeFieldsSerially(
391
391
fields : Map < string , ReadonlyArray < FieldNode > > ,
392
392
) : PromiseOrValue < ObjMap < unknown > > {
393
393
return promiseReduce (
394
- fields . entries ( ) ,
394
+ fields ,
395
395
( results , [ responseName , fieldNodes ] ) => {
396
396
const fieldPath = addPath ( path , responseName , parentType . name ) ;
397
397
const result = executeField (
@@ -431,7 +431,7 @@ function executeFields(
431
431
const results = Object . create ( null ) ;
432
432
let containsPromise = false ;
433
433
434
- for ( const [ responseName , fieldNodes ] of fields . entries ( ) ) {
434
+ for ( const [ responseName , fieldNodes ] of fields ) {
435
435
const fieldPath = addPath ( path , responseName , parentType . name ) ;
436
436
const result = executeField (
437
437
exeContext ,
@@ -1227,7 +1227,9 @@ function executeSubscription(
1227
1227
rootType ,
1228
1228
operation . selectionSet ,
1229
1229
) ;
1230
- const [ responseName , fieldNodes ] = [ ...rootFields . entries ( ) ] [ 0 ] ;
1230
+
1231
+ const firstRootField = rootFields . entries ( ) . next ( ) . value ;
1232
+ const [ responseName , fieldNodes ] = firstRootField ;
1231
1233
const fieldName = fieldNodes [ 0 ] . name . value ;
1232
1234
const fieldDef = schema . getField ( rootType , fieldName ) ;
1233
1235
0 commit comments