dholesaurabhm / js-addin

Automatically exported from code.google.com/p/js-addin
0 stars 0 forks source link

Parser error on valid associative array declaration #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following code in a js file produces a parser error - Message: Identifier 
Expected.

char = { 3: '-', 6: '-' };

Original issue reported on code.google.com by ortra...@gmail.com on 21 Mar 2014 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

probably error is shown because "char" is some kind of reserved word - and not 
recommended to use by some specifications.

HTH, Olek.

Original comment by mega.boich@gmail.com on 22 Mar 2014 at 5:45