mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
refactor(es/compat): Respect MSRV (#5473)
This commit is contained in:
parent
a5120460b1
commit
4a3b4b27e2
@ -353,8 +353,10 @@ impl<C: Comments> Actual<C> {
|
||||
|
||||
wrapper.function = make_fn_ref(fn_expr);
|
||||
*expr = wrapper.into();
|
||||
if !in_iife && let Some(c) = &mut self.comments {
|
||||
c.add_pure_comment(expr.span().lo)
|
||||
if !in_iife {
|
||||
if let Some(c) = &mut self.comments {
|
||||
c.add_pure_comment(expr.span().lo)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -374,8 +376,10 @@ impl<C: Comments> Actual<C> {
|
||||
wrapper.function = make_fn_ref(fn_expr);
|
||||
|
||||
*expr = wrapper.into();
|
||||
if !in_iife && let Some(c) = &mut self.comments {
|
||||
c.add_pure_comment(expr.span().lo)
|
||||
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