Skip to content

Commit 10a9b4e

Browse files
committed
nit revert
1 parent 36b63d5 commit 10a9b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/swc_ecma_transforms_proposal/src/decorator_impl.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,6 @@ impl VisitMut for DecoratorPass {
813813

814814
n.visit_mut_children_with(self);
815815

816-
self.consume_inits();
817-
818816
if let Some(init_proto) = self.state.init_proto.clone() {
819817
let init_proto_expr = CallExpr {
820818
span: DUMMY_SP,
@@ -860,6 +858,8 @@ impl VisitMut for DecoratorPass {
860858
}
861859
}
862860

861+
self.consume_inits();
862+
863863
if !self.state.extra_stmts.is_empty() {
864864
n.body.insert(
865865
0,

0 commit comments

Comments
 (0)