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 Jun 29, 2020
1 parent 728e39e commit 9c2d289
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/apollo-engine-reporting/src/contextualizedStats.ts
Original file line number Diff line number Diff line change
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 9c2d289

Please sign in to comment.