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

function bind operator incorrect formating #4949

Closed
ghost opened this issue Aug 8, 2018 · 1 comment
Closed

function bind operator incorrect formating #4949

ghost opened this issue Aug 8, 2018 · 1 comment
Labels
lang:javascript Issues affecting JS locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. priority:high Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent! status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! type:bug Issues identifying ugly output, or a defect in the program
Milestone

Comments

@ghost
Copy link

ghost commented Aug 8, 2018

Prettier 1.14.0
Playground link

--parser babylon

Input:

(void 0)::func()

Output:

void 0::func();

Expected behavior:

(void 0)::func();
@ghost
Copy link
Author

ghost commented Aug 8, 2018

Prettier 1.14.0
Playground link

--parser babylon

Input:

(+0)::is(-0)

Output:

+0::is(-0);

Expected behavior:

(+0)::is(-0);

@ikatyang ikatyang added type:bug Issues identifying ugly output, or a defect in the program priority:high Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent! lang:javascript Issues affecting JS labels Aug 8, 2018
@ikatyang ikatyang added the status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! label Aug 8, 2018
@ikatyang ikatyang added this to the 1.14.1 milestone Aug 8, 2018
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 6, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Nov 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:javascript Issues affecting JS locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. priority:high Code is printed in a way that alters the AST, breaks syntax, or is a significant regression. Urgent! status:has pr Issues with an accompanying pull request. These issues will probably be fixed soon! type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

1 participant