Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 26, 2025
1 parent 9dce53c commit 8602896
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions crates/swc_ecma_parser/src/parser/stmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1525,7 +1525,7 @@ mod tests {
},
handler: Some(CatchClause {
span,
param: Pat::Object(ObjectPat {
param: Some(Pat::Object(Box::new(ObjectPat {
span,
optional: false,
props: vec![ObjectPatProp::Rest(RestPat {
Expand All @@ -1537,8 +1537,7 @@ mod tests {
type_ann: None
})],
type_ann: None,
})
.into(),
}))),
body: BlockStmt {
span,
..Default::default()
Expand Down Expand Up @@ -2058,7 +2057,7 @@ export default function waitUntil(callback, options = {}) {
kind: VarDeclKind::Let,
decls: vec![VarDeclarator {
span,
name: Pat::Array(ArrayPat {
name: Pat::Array(Box::new(ArrayPat {
span,
type_ann: None,
optional: false,
Expand All @@ -2067,7 +2066,7 @@ export default function waitUntil(callback, options = {}) {
None,
Some(Pat::Ident(Ident::new_no_ctxt("t".into(), span).into()))
]
}),
})),
init: Some(Box::new(Expr::Ident(Ident::new_no_ctxt(
"simple_array".into(),
span
Expand All @@ -2090,7 +2089,7 @@ export default function waitUntil(callback, options = {}) {
kind: VarDeclKind::Let,
decls: vec![VarDeclarator {
span,
name: Pat::Object(ObjectPat {
name: Pat::Object(Box::new(ObjectPat {
optional: false,
type_ann: None,
span,
Expand All @@ -2099,7 +2098,7 @@ export default function waitUntil(callback, options = {}) {
key: Ident::new_no_ctxt("num".into(), span).into(),
value: None
})]
}),
})),
init: Some(Box::new(Expr::Ident(Ident::new_no_ctxt(
"obj".into(),
span
Expand Down

0 comments on commit 8602896

Please sign in to comment.