Skip to content

🐛 fix(parser): allow try expression as function call argument#1684

Merged
harehare merged 1 commit intomainfrom
fix/parser-try-as-call-argument
May 4, 2026
Merged

🐛 fix(parser): allow try expression as function call argument#1684
harehare merged 1 commit intomainfrom
fix/parser-try-as-call-argument

Conversation

@harehare
Copy link
Copy Markdown
Owner

@harehare harehare commented May 4, 2026

Add TokenKind::Try to the match arm in parse_call_arg so that try/catch expressions can be passed as function arguments. Add test cases for both try and try/catch as call arguments.

Add TokenKind::Try to the match arm in parse_call_arg so that try/catch
expressions can be passed as function arguments. Add test cases for both
try and try/catch as call arguments.
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 4, 2026

Merging this PR will not alter performance

✅ 29 untouched benchmarks


Comparing fix/parser-try-as-call-argument (237322e) with main (5f38fa4)

Open in CodSpeed

@harehare harehare merged commit eb0d7bf into main May 4, 2026
7 checks passed
@harehare harehare deleted the fix/parser-try-as-call-argument branch May 4, 2026 02:50
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