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

adds illegal semicolon when a function is assigned to a variable in the middle of statements #87

Open
GoogleCodeExporter opened this issue Mar 31, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. write javascript code like
for exameple, if you `fixjsstyle` some code such as
```javascript
var a = 1,
    b = 3,
    c = {},
    d = function() {},
    e = "asdf";

the result will look like this.
var a = function() {},
b = "asdf";
2. run fixjsstyle

expected result:
var a = function() {},
b = 'asdf';

but I get
var a = function() {};,
b = 'asdf';

due to that semicolon before comma(,) the result is wrong.

linux closure-linter 2.2.6

i attach a patch here.

Thank you


Original issue reported on code.google.com by `[email protected]` on 19 Jan 2015 at 9:40

Attachments:
* [ecmalintrules.patch](https://storage.googleapis.com/google-code-attachments/closure-linter/issue-87/comment-0/ecmalintrules.patch)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant