Skip to content

Conversation

@BenBaryoPX
Copy link
Contributor

This pull request includes an update to a dependency version and an improvement to the logic for normalizing empty statements in loops. The main changes are as follows:

Dependency update:

  • Upgraded the flast dependency from version 2.2.1 to 2.2.5 in package.json to ensure the latest bug fixes and features are included.

Code logic improvement:

  • Enhanced the empty statement normalization in normalizeEmptyStatements.js to correctly handle both for and (do)while loop statements, ensuring that empty statements in these loops are preserved for valid syntax.

…flast to version 2.2.5 and various Babel packages to their latest versions. This improves compatibility and performance.
…e handling of loop statements. Updated regex to include While and DoWhile statements and clarified comments regarding empty statements in loops.
@BenBaryoPX BenBaryoPX requested a review from Copilot August 24, 2025 09:16
@BenBaryoPX BenBaryoPX self-assigned this Aug 24, 2025
@BenBaryoPX BenBaryoPX merged commit 32536e1 into main Aug 24, 2025
4 checks passed
@BenBaryoPX BenBaryoPX deleted the fix_normalize_on_while_loops branch August 24, 2025 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants