Subj : Re: Binding a global object (again) To : netscape.public.mozilla.jseng From : jjl@pobox.com (John J. Lee) Date : Sun Aug 31 2003 12:31 am Brendan Eich writes: > John J. Lee wrote: > > > I made a second attempt to bind a Python class to the JS global > > object. This time, my getProperty routine isn't getting called to > > look up Python attributes on the global object. Previously, I've got > > by just using getProperty and setProperty. Presumably I need to > > provide some other functions -- lookupProperty or hasInstance, maybe? > > Why are you implementing JSObjectOps? I'm not. None of the JSClass functions appear to be what I (appear to) need, so I looked at JSPropertyOps. I don't understand why my getProperty function isn't getting called in that case, but my working assumption is that I need to provide some other similar function to the JS engine. Am I wrong? I certainly can't guess why I *should* need such a function, but OTOH I can't guess where else the problem might lie. > It's not frozen and not documented. It is briefly documented here: http://www.mozilla.org/js/spidermonkey/apidoc/gen/complete.html and also in jspubtd.h. Curious, I don't recall having seen an open source project suffer from too much documentation before ;-) John .