Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix break statement in presence of labels #742

Merged
merged 3 commits into from
Dec 4, 2024

Conversation

bnoordhuis
Copy link
Contributor

In this snippet...

for (;;) label: break

...the break statement jumped back to the start of the loop instead of out of the loop.

Fixes: #741

@saghul
Copy link
Contributor

saghul commented Dec 4, 2024

Sweet!

In this snippet...

    for (;;) label: break

...the break statement jumped back to the start of the loop instead of
*out* of the loop.

Fixes: quickjs-ng#741
@bnoordhuis
Copy link
Contributor Author

Guess it's because I'm using an older version of gcc... third time's the charm, right?

@bnoordhuis bnoordhuis merged commit 66732e7 into quickjs-ng:master Dec 4, 2024
59 checks passed
@bnoordhuis bnoordhuis deleted the fix741 branch December 4, 2024 22:56
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.

Breaks and labels interact incorrectly
2 participants