[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [orion-dev] Stray commas
|
Hmmm. just tested in Chrome and Safari and you're right it seems to ignore them. I was sure that I've had problems with them in the past on Chrome. Must be mistaken.
Definitely were problematic on IE. When you've had to debug those problems in IE, you start to become a little paranoid.
In any case they're best avoided.
Anton
John J Barton ---04/11/2012 11:52:31 AM---I've never had a problem with commas in object literals in Firefox or Chrome.
![]()
| ![]()
John J Barton <johnjbarton@xxxxxxxxxxxxxxx> |
![]()
| ![]()
Orion developer discussions <orion-dev@xxxxxxxxxxx> |
![]()
| ![]()
04/11/2012 11:52 AM |
![]()
| ![]()
Re: [orion-dev] Stray commas |
I've never had a problem with commas in object literals in Firefox or Chrome.
jjb
On Wed, Apr 11, 2012 at 8:14 AM, Anton McConville <Anton.McConville@xxxxxxxxxx> wrote:
Actually stray commas are disastrous for a web developer with browsers too! While FireFox is generous in tolerating them, IE or WebKit will consistently fail with them. They're not welcome at all, and typically any error presented will not immediately suggest a stray comma.
Anton
John Arthorne---04/11/2012 11:05:09 AM---One of the build problems last night was an an extra trailing comma in an object literal. These are tolerated by browsers but a
One of the build problems last night was an an extra trailing comma in an object literal. These are tolerated by browsers but are illegal and cause the closure compiler in our build to fail. This is just a reminder that we should all be using the Orion _javascript_ editor, which correctly reports trailing commas as illegal. Please don't commit any JS file that has errors showing in the Orion editor. These problems are trivial to catch at editing time but can be really difficult to track down in the build (Simon was tracking this down until 1am last night).
John_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev

