Subj : Re: Getting function name with generic function call hook To : netscape.public.mozilla.jseng From : "Sterling Bates" Date : Mon Oct 27 2003 08:00 pm "Brendan Eich" wrote in message news:3F9DA901.4090100@meer.net... > No, JSTYPE_VOID is 0 and JSTYPE_OBJECT is 1-- see jspubtd.h. JSVAL, JSTYPE, po-tay-to, po-tah-to. I plan to sponsor a "Stump Brendan" day. You get no reference material, and we ask the hardest questions we can find :-) No progress on JS_GetFunctionId -- it still requires a non-null JSFunction*, and I'm working my way around the null problem. funobj := PJSObject(argv^ and (not JSVAL_TAGMASK)); fun := PJSFunction(JS_GetPrivate(cx,funobj)); I'm guessing from jsapi.h that JSVAL_TAGMASK equals $1 and $2 and $4 (since JSVAL_TAGBITS is 3). If that's correct, still no dice. Is there a certain spidermonkey roadmap I should follow to debug? Keep in mind I can't precisely follow the C code from Delphi, but I can trace through the CPU and get a rough idea of what's happening. Sterling .