LibJS: Box ExpressionKind::TemplateLiteral variant

This commit is contained in:
Johan Dahlin 2026-03-22 17:40:48 +01:00 committed by Andreas Kling
parent bb44d3bb38
commit 780605f986
2 changed files with 3 additions and 3 deletions

View file

@ -1399,7 +1399,7 @@ pub enum ExpressionKind {
Object(Vec<ObjectProperty>),
// Templates
TemplateLiteral(TemplateLiteralData),
TemplateLiteral(Box<TemplateLiteralData>),
TaggedTemplateLiteral {
tag: Box<Expression>,
template_literal: Box<Expression>,

View file

@ -2089,10 +2089,10 @@ impl Parser<'_> {
self.expression(
start,
ExpressionKind::TemplateLiteral(TemplateLiteralData {
ExpressionKind::TemplateLiteral(Box::new(TemplateLiteralData {
expressions,
raw_strings,
}),
})),
)
}