Skip to content

Commit a3cb530

Browse files
crisbetodevversion
authored andcommitted
fix(compiler): handle typeof expressions in serializer (#58217)
Fixes that some changes which landed at the same time caused a compilation error in the serialized. PR Close #58217
1 parent 48bfb87 commit a3cb530

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/compiler/src/expression_parser/serializer.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class SerializeExpressionVisitor implements expr.AstVisitor {
136136
.join(', ')})`;
137137
}
138138

139+
visitTypeofExpresion(ast: expr.TypeofExpression, context: any) {
140+
return `typeof ${ast.expression.visit(this, context)}`;
141+
}
142+
139143
visitASTWithSource(ast: expr.ASTWithSource, context: any): string {
140144
return ast.ast.visit(this, context);
141145
}

0 commit comments

Comments
 (0)