LibJS: Box ExpressionKind::RegExpLiteral variant
This commit is contained in:
parent
780605f986
commit
3d0aaf41a9
2 changed files with 3 additions and 3 deletions
|
|
@ -1327,7 +1327,7 @@ pub enum ExpressionKind {
|
|||
BooleanLiteral(bool),
|
||||
NullLiteral,
|
||||
BigIntLiteral(String),
|
||||
RegExpLiteral(RegExpLiteralData),
|
||||
RegExpLiteral(Box<RegExpLiteralData>),
|
||||
|
||||
// Identifiers
|
||||
Identifier(Rc<Identifier>),
|
||||
|
|
|
|||
|
|
@ -699,11 +699,11 @@ impl Parser<'_> {
|
|||
};
|
||||
self.expression(
|
||||
start,
|
||||
ExpressionKind::RegExpLiteral(RegExpLiteralData {
|
||||
ExpressionKind::RegExpLiteral(Box::new(RegExpLiteralData {
|
||||
pattern: pattern.into(),
|
||||
flags: flags.into(),
|
||||
compiled_regex,
|
||||
}),
|
||||
})),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue