Subj : ++0 is not a syntax error? To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Wed Aug 18 2004 03:30 pm Hi! As far as I can see ECMAScript requires that ++0 should produce RuntimeError, not SyntaxError. So, for example, the following should be OK: var f = Function('++0') and only during call to f RuntimeError should be generated. Microsoft JScript and KDE JavaScript implementation follows this while SpiderMonkey behaves much saner IMO and report SyntaxError during parsing. But does ECMA-267 allow this early error reporting? Regards, Igor .