Subj : Function name from JSObject To : netscape.public.mozilla.jseng From : "JZ" Date : Thu Feb 06 2003 09:41 pm I'm creating a bunch of JS functions using JS_DefineFunction, all mapped to an internal C function, 'do_my_c_function'. do_my_c_function(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval) What I want to know from these args is what was the function name that the user called in JS? Since I've mapped many JS functions to this one C function, knowing the name of the function called allows me to take the right action. Is that possible? Can I get the JS function name from the JSObject? How? I'm hoping I don't have to map each function to a separate function. JZ .