Skip to content

[WATParser] Restore position on failed typeuse in skipFunctionBody - #9145

Open
tlively wants to merge 1 commit into
fix-8634-3from
fix-8634-4
Open

tlively wants to merge 1 commit into
fix-8634-3from
fix-8634-4

Conversation

@tlively

@tlively tlively commented Sep 23, 2026

Copy link
Copy Markdown
Member

When typeuse() inside ParseDeclsCtx::skipFunctionBody failed after consuming an opening parenthesis (such as '(type $)'), not restoring the lexer position left depth un-incremented so the closing ')' decremented depth early and caused skipFunctionBody to exit the function prematurely.

When typeuse() inside ParseDeclsCtx::skipFunctionBody failed after consuming an opening parenthesis (such as '(type $)'), not restoring the lexer position left depth un-incremented so the closing ')' decremented depth early and caused skipFunctionBody to exit the function prematurely.
@tlively
tlively requested a review from a team as a code owner September 23, 2026 03:06
@tlively
tlively requested review from stevenfontanella and removed request for a team September 23, 2026 03:06

This branch has not been deployed

No deployments
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.

1 participant