Subj : Property resolution via GetProperty on the global object, and "this" To : netscape.public.mozilla.jseng From : donteventthinkaboutit Date : Tue Aug 03 2004 06:44 am I am using spidermonkey for scripting some native objects, which have proxy JSObjects which are just thin wrappers. These native objects have a hierarchy of thier own, which is *not* reflected explicitly in the objects in the javascript runtime... The javascript proxy objects are resolved by the GetProperty method on the global object. I check the property name, and look on my list of native objects (in native code), and return the JSObject which is its proxy if that object is found. Here is the problem: When I use JS_EvaluateScript on the global object, my proxy objects are only resolved if I explicitly use "this". Here is my problem... I am calling JS_EvaluateScript on my global object. GetProperty only seems to be invoked if the property is explicitly preceeded by "this" so inside the script... this.foo // tries to resolve foo on the global object via // GetProperty as expected. foo // GetPoperty not called on global object. Please... what am I missing? Thanks! Dennis .