Subj : Too permissive semicolon insertion? To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Sun Aug 22 2004 02:48 pm Consider the following: foo() bar; In SpiderMonkey shell from CVS tip it correctly generates syntax error: x.js:2: SyntaxError: missing ; before statement: x.js:2: foo() bar; x.js:2: ......^ Now if I change that to: foo( ) bar; then the shell no longer complains about syntax errors and just notify about runtime error when it executes the compiled code: x.js:2: ReferenceError: foo is not defined Is it a bug or some compatibility consideration? Regards, Igor .