benjamn / benjamn/recast

Reprinting "return 1, 2, 3;" outputs "return (1, 2, 3);"

Open
#261 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.3k
Forks
363
Avg merge
3d 8h
Merged PRs (30d)
3

Description

This issue has no description.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported reprint of "return 1, 2, 3;" in recast and trace the printer behavior that changes it to "return (1, 2, 3);". Done means the original return expression is reprinted without the unwanted parentheses, with a regression test covering the example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.