bublejs / buble

https://buble.surge.sh
MIT License
868 stars 67 forks source link

'=' in /**/ comment after arrow( => ) is not correctly transpiled #117

Open akira-n-aunif opened 6 years ago

akira-n-aunif commented 6 years ago

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 )

adrianheine commented 5 years ago

That's a bug in https://github.com/Rich-Harris/buble/blob/584082a152aedeab0c49ab69852a4c7ee0f00ee5/src/program/types/ArrowFunctionExpression.js#L23.