'=' in /**/ comment after arrow( => ) is not correctly transpiled
- Dominant language
- JavaScript
- Stars
- 874
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
NG
`
let a = () => /* = */ {
return 'b'
}
`
OK
`
let a = () => { /* = */
return 'b'
}
`
OK
`
let a = () /* = */ => {
return 'b'
}
`
I found this issue in [@material/select/foundation.js L55 ( Material components web )](https://github.com/material-components/material-components-web/blob/master/packages/mdc-select/foundation.js)
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the three arrow-function examples in the report and compare the transpiled output, focusing on the case where /* = */ follows the arrow. Inspect the referenced Material Components Web foundation.js line 55 for the real-world input. Done means the comment is transpiled correctly without changing the valid examples.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100