Subj : Re: Getting function name with generic function call hook To : Sterling Bates From : Brendan Eich Date : Mon Oct 27 2003 03:23 pm Sterling Bates wrote: >>No, that's not what JSVAL_TO_OBJECT does. Please re-read jsapi.h near >>the top; note that JSTYPE_* has nothing to do with jsval values and tags. >> >> > >I stand corrected, but it shouldn't affect anything anyway, since >JSTYPE_OBJECT is 0 at this point. > > No, JSTYPE_VOID is 0 and JSTYPE_OBJECT is 1-- see jspubtd.h. You want to clear the tag, in any event, not set (or) it. /be .