Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created April 8, 2010 15:21
Show Gist options
  • Save rwaldron/360178 to your computer and use it in GitHub Desktop.
Save rwaldron/360178 to your computer and use it in GitHub Desktop.
Test:
var foo = { bar : 'barberic'
, baz : 'bazterd'
, duck : 'punch'
};
JSLint Results:
Error:
Problem at line 1 character 19: Bad line breaking before ','.
var foo = { bar : 'barberic'
Problem at line 2 character 19: Bad line breaking before ','.
, baz : 'bazterd'
@antimatter15
Copy link

Well, JSLint does spot the missing comma issue, I guess it wants to keep it's job.

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