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:
parent
395fb186a4
commit
f75acbd99b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue