Subj : Function name...? To : netscape.public.mozilla.jseng From : "Robert Bates" Date : Tue Jul 08 2003 02:40 am OK, in pursuit of my Quick-n-Dirty C++ wrapper for JSObject, I am trying to figure out if there's a way (short of using the debug API) to get the actual method name invoked from the JSNative function call. For example: JSBool c_method(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) { JSString *jsMethod = ... ... } Is there a way, or am I trying to do something not intended...? Brendan's made me aware that there are lost cycles if I don't do the straight-away mapping, but the objects I'm exposing will only have these methods called a couple times at most, and not iteratively, so Quick-n-Dirty is the name of the game right now... Thanks! -- ========== Robert Bates Austin, Texas - USA http://home.austin.rr.com/robsplace .