LibJS: Box ExpressionKind::TemplateLiteral variant
This commit is contained in:
parent
bb44d3bb38
commit
780605f986
2 changed files with 3 additions and 3 deletions
|
|
@ -1399,7 +1399,7 @@ pub enum ExpressionKind {
|
|||
Object(Vec<ObjectProperty>),
|
||||
|
||||
// Templates
|
||||
TemplateLiteral(TemplateLiteralData),
|
||||
TemplateLiteral(Box<TemplateLiteralData>),
|
||||
TaggedTemplateLiteral {
|
||||
tag: Box<Expression>,
|
||||
template_literal: Box<Expression>,
|
||||
|
|
|
|||
|
|
@ -2089,10 +2089,10 @@ impl Parser<'_> {
|
|||
|
||||
self.expression(
|
||||
start,
|
||||
ExpressionKind::TemplateLiteral(TemplateLiteralData {
|
||||
ExpressionKind::TemplateLiteral(Box::new(TemplateLiteralData {
|
||||
expressions,
|
||||
raw_strings,
|
||||
}),
|
||||
})),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue