Skip to content

Support classic for loops - #182

Merged
oscarotero merged 1 commit into
mainfrom
classic-for-loop
Jul 10, 2026
Merged

Support classic for loops#182
oscarotero merged 1 commit into
mainfrom
classic-for-loop

Conversation

@vrugtehagel

@vrugtehagel vrugtehagel commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Supports classic initializer-condition-incrementer-style for loops. They must start with either let or var to disambiguate between for...of. The latter currently doesn't support let or var (or const) keywords so this is a backwards-compatible change that has minimal performance impact.

Resolves #173

Supports classic initializer-condition-incrementer-style for loops. They
must start with either `let ` or `var ` to disambiguate between
for...of. The latter currently doesn't support `let` or `var` (or
`const`) keywords so this is a backwards-compatible change that has
minimal performance impact.
@oscarotero

Copy link
Copy Markdown
Member

That's great. Thank you!

@oscarotero
oscarotero merged commit 7760d9c into main Jul 10, 2026
1 check passed
@oscarotero
oscarotero deleted the classic-for-loop branch July 10, 2026 13:29
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.

Allow traditional for loops

2 participants