Skip to content

Commit

Permalink
Use entries instead of values
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Segaran committed Jul 24, 2020
1 parent bda6413 commit b9c6b49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/apollo-engine-reporting/src/contextualizedStats.ts
Expand Up @@ -102,7 +102,10 @@ export class ContextualizedStats {

let currPathErrorStats: IPathErrorStats = rootPathErrorStats;

for (const subPath of path.values()) {
for (const subPathEntry of path.entries()) {
// Using entries instead values since Node 8
// doesn't support Array.prototype.values
const subPath = subPathEntry[1];
let children = currPathErrorStats.children;
if (!children) {
children = Object.create(null);
Expand Down

0 comments on commit b9c6b49

Please sign in to comment.