Subj : Re: help on the resolve hook To : Brann Joly From : Brendan Eich Date : Thu May 13 2004 07:58 pm Brann Joly wrote: > I don't even know what's the protoype of a resolve function, because i've > found 2 on the internet: Why not look in the source itself? js.c and jsfun.c have examples. > resolve(JSContext *cx, JSObject *obj, jsval id, uintN flags, JSObject > **objp) > and its_resolve(JSContext *cx, JSObject *obj, jsval id) See JSCLASS_NEW_RESOLVE (and JSCLASS_NEW_RESOLVE_GETS_START) in jsapi.h, and JSNewResolve in jspubtd.h. > And of course, i definitely don't know how to use it. > A pointer to the relevant part of the mozilla source code (or to an example > using such a callback) would be greatly apreciated Have you used http://lxr.mozilla.org yet? /be .