Subj : Re: liveconnect... To : Oystein Hallaraker From : Brendan Eich Date : Thu Jul 15 2004 01:13 pm Oystein Hallaraker wrote: > > The problem is that to use JS_GetScriptFilename() I have to have the > JSScript. I am in jsj_JavaInstanceMethodWrapper(JSContext *cx, JSObject > *obj, uintN argc, jsval *argv, jsval *vp) (liveconnect/jsj_method.c) > and I cannot find a way to get the JSScript from the JSContext. Use jsdbgapi.h more: JS_FrameIterator and JS_GetFrameScript to find the top-most scripted frame. /be .