feat(compiler): ensure interpolation expressions are wrapped with toString()

This commit is contained in:
Evan You
2019-09-23 15:36:30 -04:00
parent e09e887219
commit b3b67b8c7d
23 changed files with 148 additions and 50 deletions

View File

@@ -110,6 +110,7 @@ export interface ExpressionNode extends Node {
type: NodeTypes.EXPRESSION
content: string
isStatic: boolean
isInterpolation: boolean
children?: (ExpressionNode | string)[]
}
@@ -208,7 +209,8 @@ export function createExpression(
type: NodeTypes.EXPRESSION,
loc,
content,
isStatic
isStatic,
isInterpolation: false
}
}