Skip to content

fix return, break and continue inside try in async functions (#1706)#1707

Open
RealColdFry wants to merge 1 commit intoTypeScriptToLua:masterfrom
RealColdFry:fix/async-try-control-flow
Open

fix return, break and continue inside try in async functions (#1706)#1707
RealColdFry wants to merge 1 commit intoTypeScriptToLua:masterfrom
RealColdFry:fix/async-try-control-flow

Conversation

@RealColdFry
Copy link
Copy Markdown
Contributor

@RealColdFry RealColdFry commented Apr 6, 2026

Fixes #1706

  • replaces return/break/continue inside async try/catch with flag variables checked after the awaiter resolves
  • nested try-in-try not yet handled

@RealColdFry RealColdFry marked this pull request as ready for review April 6, 2026 05:00
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.

return, break and continue inside try in async functions don't work correctly

1 participant