From 52a6da043d90064b6ab841dc3e061eef6fc5450a Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Sun, 15 Sep 2019 21:41:46 -0700 Subject: [PATCH] fix(ivy): correct debug array names (#32691) PR Close #32691 --- packages/core/src/util/named_array_type.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/util/named_array_type.ts b/packages/core/src/util/named_array_type.ts index f73a00ce35..8534839d4f 100644 --- a/packages/core/src/util/named_array_type.ts +++ b/packages/core/src/util/named_array_type.ts @@ -30,7 +30,7 @@ export function createNamedArrayType(name: string): typeof Array { try { // We need to do it this way so that TypeScript does not down-level the below code. const FunctionConstructor: any = createNamedArrayType.constructor; - return (new FunctionConstructor('Array', `return class ABC extends Array{}`))(Array); + return (new FunctionConstructor('Array', `return class ${name} extends Array{}`))(Array); } catch (e) { // If it does not work just give up and fall back to regular Array. return Array;