Subj : Re: Error in decompiling To : netscape.public.mozilla.jseng From : Martin Honnen Date : Sun Jan 18 2004 08:52 pm Brendan Eich wrote: > Adrian Klein wrote: > >> I think this seems like a bug in the decompiling part of the >> Spidermonkey Engine, because it does not check if the name of a object >> property is a reserved keyword, so that it should not be refered to >> with the 'object.property' syntax. >> >> (Tested on Mozilla 1.5, 1.6) > > > Rats, I thought I fixed that a while ago. I just fixed it now, for > 1.7alpha, in rev 3.67 of js/src/jsopcode.c. Does that also fix object literals in a function body where a property name is a keyword? With the xpcshell that comes with Mozilla 1.6 I get js> function f () { var obj = { 'if': false }; } js> f function f() { var obj = {if:false}; } which is wrong too. -- Martin Honnen http://JavaScript.FAQTs.com/ .