Subj : Re: Private data on function objects To : netscape.public.mozilla.jseng From : James Turner Date : Thu Jan 09 2003 02:25 pm In Brendan Eich wrote: > > 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. > Actually, my concern is the getter / setter for *static* properties ( which don't seem to be widely used), where the 'obj' passed is indeed the function object ( at least that's what I gleaned get from printf-ing the JSobject pointers) And the code seems to work. Or have I missed something, and you already knew that? I'm still getting my head round all this stuff :-) H&H James PS - Jband, I know about LXRL my day job involves hacking mozilla here at Crocodile Clips, though this JS work I'm doing is 'extra-curicular'. So I've been starting at LXR trying to grok the great lizard for an awfully long time now :-) .