mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
refactor(es/compat): Respect MSRV (#5473)
This commit is contained in:
parent
a5120460b1
commit
4a3b4b27e2
@ -353,10 +353,12 @@ impl<C: Comments> Actual<C> {
|
||||
|
||||
wrapper.function = make_fn_ref(fn_expr);
|
||||
*expr = wrapper.into();
|
||||
if !in_iife && let Some(c) = &mut self.comments {
|
||||
if !in_iife {
|
||||
if let Some(c) = &mut self.comments {
|
||||
c.add_pure_comment(expr.span().lo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Expr::Fn(
|
||||
fn_expr @ FnExpr {
|
||||
@ -374,10 +376,12 @@ impl<C: Comments> Actual<C> {
|
||||
wrapper.function = make_fn_ref(fn_expr);
|
||||
|
||||
*expr = wrapper.into();
|
||||
if !in_iife && let Some(c) = &mut self.comments {
|
||||
if !in_iife {
|
||||
if let Some(c) = &mut self.comments {
|
||||
c.add_pure_comment(expr.span().lo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
_ => {}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user