fix(compiler): use correct variable in invalid function (#28656)

Related to #26743 (but does not close it).

PR Close #28656
This commit is contained in:
Filipe Silva 2019-02-12 15:37:20 +00:00 committed by Ben Lesh
parent 395fb186a4
commit f75acbd99b
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ export function unsupported(feature: string): never {
export function invalid<T>(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 {