1266Re: [jslint] Re: option.es5
- Apr 6, 2010
> ES3 does not allow the trailing comma, so IE is correct when it rejectsit.
Distinguo: ES3 does not allow the trailing comma, so Internet Explorer is correct TO reject
IE does the right thing the wrong way. It rejects the comma and gives an ambiguous message and the line number BUT NOT THE FILE NAME.
Even assuming Microsoft employees should otherwise be allowed to live, this transgression (perversely maintained through every version of IE) is alone grounds for hunting them all down with dogs and shotguns.
From: Douglas Crockford <douglas@...>
Sent: Tue, April 6, 2010 12:35:27 PM
Subject: [jslint] Re: option.es5
--- In email@example.com, Rob Richardson <erobrich@...> wrote:
ES3 does not allow the trailing comma, so IE is correct when it rejects it.
ES5 allows but does not require the trailing comma.
There is often confusion between separators and terminators. Commas are separators. Semicolons are terminators.
Yahoo! Groups Links
[Non-text portions of this message have been removed]
- << Previous post in topic Next post in topic >>