Skip to content

Commit f4392d5

Browse files
committed
fix: do-while first round
1 parent 076a800 commit f4392d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/tree_shaker/src/nodes/stmt/do_while_statement.rs

+2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ impl<'a> Analyzer<'a> {
1717
self.push_cf_scope(CfScopeKind::LoopBreak, Some(false));
1818

1919
// Execute the first round.
20+
self.push_cf_scope(CfScopeKind::LoopContinue, Some(false));
2021
self.exec_statement(&node.body);
22+
self.pop_cf_scope();
2123

2224
if self.cf_scope().must_exited() {
2325
self.pop_cf_scope();

0 commit comments

Comments
 (0)