Skip to content
Browse files

fix(ivy): correct debug array names (#32691)

PR Close #32691
  • Loading branch information...
mhevery authored and kara committed Sep 16, 2019
1 parent 1748aeb commit 52a6da043d90064b6ab841dc3e061eef6fc5450a
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit 52a6da0

Please sign in to comment.
You can’t perform that action at this time.