Subj : Determining call context in SpiderMonkey To : netscape.public.mozilla.jseng From : InsipidL Date : Tue Aug 17 2004 11:56 am After digging through the SpiderMonkey code I have a feeling that this is not possible due to the nature of well, every parsed language =), but I have to try: Is it possible given: i = a() and b(a()) To determine within the native a() handler, whether or not you are being called and assigned to a variable, or being called as a parameter to another function? If it is, is it possible to determine the name of the function that is using you as a parameter (ie "b") ? (yes it's a little weird, but will actually help our target users if I can determine this). Thanks! .