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

PR Close #32691
This commit is contained in:
Misko Hevery 2019-09-15 21:41:46 -07:00 committed by Kara Erickson
parent 1748aeb9c8
commit 52a6da043d
1 changed files with 1 additions and 1 deletions

View File

@ -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;