Skip to content

fix await inside catch/finally in async try#1709

Open
RealColdFry wants to merge 1 commit intoTypeScriptToLua:masterfrom
RealColdFry:fix/async-try-await-in-catch-finally
Open

fix await inside catch/finally in async try#1709
RealColdFry wants to merge 1 commit intoTypeScriptToLua:masterfrom
RealColdFry:fix/async-try-await-in-catch-finally

Conversation

@RealColdFry
Copy link
Copy Markdown
Contributor

Fixes #1659

  • wrap catch and finally callbacks in __TS__AsyncAwaiter so await works inside them
  • fix the chain ordering (.catch() before .finally()) and wire up the full chain before awaiting.

@RealColdFry RealColdFry marked this pull request as ready for review April 15, 2026 10:18
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.

Async catch block may yield from outside a coroutine

1 participant