Subj : Re: [SpiderMonkey] JS_DefineObject returns null after moving to newest To : Brian Barnes From : Brendan Eich Date : Sat Jul 19 2003 08:48 pm Brian Barnes wrote: > It just throws and error to console and returns JS_FALSE, everytime! > My guess is that the 1.4 I was using might have been somewhere in the > middle of a change, and lucky me :) I was using it and depending on > some behavior that wasn't right. That could be -- I'd have to do CVS archeology to be sure. > So, what's the proper way to do this? Two options come to mind: 1. Use JSOPTION_STRICT and JSOPTION_WERROR. 2. Use JS_SealObject after you've populated an object, to prevent *any* properties from being added to it. I'm wondering why your global resolve returned false still. Did it return false always? /be .