Using numbers as property names causes syntax errors

When creating an object using the inline object syntax, it is possible to use numbers as property names:

var foo = {7:'bar'};

In Internet Explorer for Mac, this will throw a syntax error and cause the entire script to be ignored.

Test page Workaround is included
Reported by: TarquinWJ.

Explorer Mac | Reported on 29 June 2005.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.




Search reports by browser:

Atom RSS

Comments

(Add your own)