Skip to content

fix(parser): parse default async arrow exports - #5445

Closed
AayushMainali-Github wants to merge 1 commit into
boa-dev:mainfrom
AayushMainali-Github:fix/5442-async-arrow-default-export
Closed

fix(parser): parse default async arrow exports#5445
AayushMainali-Github wants to merge 1 commit into
boa-dev:mainfrom
AayushMainali-Github:fix/5442-async-arrow-default-export

Conversation

@AayushMainali-Github

Copy link
Copy Markdown
Contributor

Fixes #5442.

Summary

  • distinguish async function declarations from async arrow expressions after export default
  • parse async arrow functions through the default assignment-expression path
  • add regression coverage for parenthesized, unparenthesized, and multi-parameter forms

Testing

  • cargo test -p boa_parser
  • cargo clippy -p boa_parser --all-targets -- -D warnings
  • cargo fmt --all -- --check

@AayushMainali-Github
AayushMainali-Github requested a review from a team as a code owner July 23, 2026 14:58
@github-actions github-actions Bot added C-Parser Issues surrounding the parser C-Tests Issues and PRs related to the tests. Waiting On Review Waiting on reviews from the maintainers labels Jul 23, 2026
@github-actions github-actions Bot added this to the v1.0.0 milestone Jul 23, 2026
@jedel1043

Copy link
Copy Markdown
Member

duplicate of #5443

@jedel1043 jedel1043 closed this Aug 30, 2026
@github-actions github-actions Bot removed the Waiting On Review Waiting on reviews from the maintainers label Aug 30, 2026
@jedel1043 jedel1043 modified the milestones: v0.23.0, v0.22 Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-Parser Issues surrounding the parser C-Tests Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser rejects async arrow function in export default position

2 participants