diff --git a/packages/compiler/src/render3/view/util.ts b/packages/compiler/src/render3/view/util.ts index 05295376de..8b3f375d16 100644 --- a/packages/compiler/src/render3/view/util.ts +++ b/packages/compiler/src/render3/view/util.ts @@ -57,7 +57,7 @@ export function unsupported(feature: string): never { export function invalid(arg: o.Expression | o.Statement | t.Node): never { throw new Error( - `Invalid state: Visitor ${this.constructor.name} doesn't handle ${o.constructor.name}`); + `Invalid state: Visitor ${this.constructor.name} doesn't handle ${arg.constructor.name}`); } export function asLiteral(value: any): o.Expression {