Subj : Re: Default property call of object To : Damian Slee From : Brendan Eich Date : Thu Sep 09 2004 11:38 am Damian Slee wrote: > I have the problem when the JSClass.call hook is invoked for an object, > that the global object is passed into the handler, not the object that > is being worked upon. Any ideas for a solution? If you want to get the callee (the object being called), use JSVAL_TO_OBJECT(argv[-2]). This is part of the API. BTW, the |obj| parameter is JSVAL_TO_OBJECT(argv[-1]) -- it's the |this| parameter in JS functions. It should be the global object if you are calling a property of the global object via a reference whose base object is the global. /be .