Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix turning division operator into line comment in compact mode #7131

Merged
merged 2 commits into from
Dec 29, 2017

Conversation

karottenreibe
Copy link
Contributor

Q                       A
Fixed Issues? Fixes #7071
Patch: Bug Fix? yes
Major: Breaking Change? no
Minor: New Feature? no
Tests Added + Pass? Yes
Documentation PR no
Any Dependency Changes? no
License MIT

After emitting a division operator, the code generator MUST output a space if a comment is output right afterwards, otherwise, the division slash and the comment's starting slash will be merged to produce a line comment. See #7071

@karottenreibe
Copy link
Contributor Author

Please note that part of the issue was already addressed on master: concatenating / and comments. However, concatenating / and regexes was still a problem. Fixed that and added the two tests from the other pull request.

@babel-bot
Copy link
Collaborator

babel-bot commented Dec 29, 2017

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/6372/

@existentialism existentialism added pkg: generator PR: Bug Fix 🐛 A type of pull request used for our changelog categories labels Dec 29, 2017
@existentialism
Copy link
Member

@karottenreibe thanks!

@existentialism existentialism merged commit 3956b3e into babel:master Dec 29, 2017
@lock lock bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue pkg: generator PR: Bug Fix 🐛 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Babel generator 6 turns division + comment into just comment in compact mode
4 participants