From 9c2d28964309fcd2d0fb28de790241653b1c7848 Mon Sep 17 00:00:00 2001 From: Joshua Segaran Date: Mon, 29 Jun 2020 15:59:35 -0700 Subject: [PATCH] Use entries instead of values --- packages/apollo-engine-reporting/src/contextualizedStats.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/apollo-engine-reporting/src/contextualizedStats.ts b/packages/apollo-engine-reporting/src/contextualizedStats.ts index 0500a4195d4..a4e33c8cdcf 100644 --- a/packages/apollo-engine-reporting/src/contextualizedStats.ts +++ b/packages/apollo-engine-reporting/src/contextualizedStats.ts @@ -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);