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 named 'in' not formatting correctly #351

Closed
rishihahs opened this issue Nov 7, 2013 · 1 comment · Fixed by #439
Closed

Function named 'in' not formatting correctly #351

rishihahs opened this issue Nov 7, 2013 · 1 comment · Fixed by #439

Comments

@rishihahs
Copy link

JS-Beautify 1.4.1
Node 0.10.21

I have the following:

io.sockets.in(...).emit(...)

However, JS-Beautify formats it to the following:

io.sockets. in (...).emit(...)
@bitwiseman
Copy link
Member

Same problem as #309.

bitwiseman added a commit to bitwiseman/js-beautify that referenced this issue Mar 28, 2014
This supports calling libraries which declare properties of objects using reserved words.
This does not support declaring these fields.

`var a = { 'throw': function() {} }` - works
`a.throw()` - works
`var a = { throw: function() {} }` - does not work

Fixes beautifier#309
Fixes beautifier#351
Fixes beautifier#368
Fixes beautifier#378
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants