Subj : Re: syntax check To : bubbfree From : Brendan Eich Date : Mon Jan 10 2005 02:34 pm bubbfree@gmail.com wrote: > Shouldn't this error out in the JS engine? > if (15 < 5 (7 != 3)) { > ... > } > thnx And so it does: js> if (15 < 5 (7 != 3)); typein:1: TypeError: number is not a function But notice that the error, as allowed by ECMA-262 Edition 3, is reported at run-time: js> s = Script('if (15 < 5 (7 != 3));'); if (15 < 5(7 != 3)) { } js> s() typein:2: TypeError: number is not a function What JS engine are you using, btw? Is there a reason you want this error to be caught only at compile time? /be .