News for hackers. Stuff that matters.
Re:Why are programmers afraid of not using semicolons in Jav... by cam- on Sunday August 07, 2011 @12:58PM (#2857053)
When compressing javascript down, missing a semi-colon can cause broken js, especially in older IE browsers. Trailing commas on js object literals would also freeze an entire page in IE. When that happened it would often take several days in jslint trying to work out where the broken js was from.
Re:Why are programmers afraid of not using semicolons in Jav... by bluesnowmonkey on Sunday August 07, 2011 @01:24PM (#2857123)
If that's the case, then the compression tool isn't parsing the Javascript correctly.
Re:Why are programmers afraid of not using semicolons in Jav... by sjs on Sunday August 07, 2011 @02:02PM (#2857253)
Watch out or all the nutjobs who uses Crockford's broken compressor will come out of the woodwork to defend it.