Subj : Re: [Rhino] can you add default getters/setters? To : netscape.public.mozilla.jseng From : Igor Bukanov Date : Sat May 08 2004 11:45 am Brendan Eich wrote: > Note that SpiderMonkey supports foo(i) and o.item(j) on the left of > assignment operators, for native functions only. Grep for JSOP_SETCALL. That is why f() = 1 gives 1: ReferenceError: f is not defined while f() = 1; function f() { } generates 2: SyntaxError: invalid assignment left-hand side right? But then I have a question. Since in the second case SyntaxError happens during script evaluation, not compilation, why it is still called SyntaxError? Regards, Igor .