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

Already on GitHub? Sign in to your account

Wrong formating in the object includes in-line comments #125

Closed
anotheri opened this Issue Jul 5, 2012 · 0 comments

Comments

Projects
None yet
2 participants

anotheri commented Jul 5, 2012

Before:

var obj = {
        a: 1 // a is first
    ,   b: 2
    ,   c: 3
};

After:

var obj = {
    a: 1 // a is first,
    b: 2,
    c: 3
};

Object crashed. Comma must be before comment. Thank you.

@einars einars closed this in 29fffc2 Jul 5, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment