Skip to content

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

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

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

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
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. Waiting On Review Waiting on reviews from the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Parser rejects async arrow function in export default position

1 participant