Subj : Re: Private data on function objects To : netscape.public.mozilla.jseng From : Brendan Eich Date : Wed Jan 08 2003 04:53 pm James Turner wrote: > I've recently started learning (and embedding) SpiderMonkey, and have > hit a minor issue implementing static properties / methods in my JSClass- > es. > > I've managed to ascertain that: > - The object passed to the methods / properties is the function object Just to clarify: you must mean "the object tagged as a jsval and passed as argv[-2]" here. The |obj| parameter to native functions is the |this| parameter in JS. The |obj| parameter of property getters/setters is object containing the property named by the |id| param. Jband answered the main question, but I thought I'd dot this i lest others interested in the details become confused. /be .