Subj : Re: getting source of javascript! To : netscape.public.mozilla.jseng From : Sterling Bates Date : Tue May 04 2004 08:40 pm > I was wondering how you can get a scripts sourceURL from a JSContext. > How does the jsengine differentiate between internal contexts and > contexts that are created for the execution of javascript from an URL. Your question seems geared towards browsers. If that's the case, try taking this up in netscape.public.mozilla.dom. If not, see http://www.mozilla.org/js/spidermonkey for more information. To be precise, the source of the script (memory- or file-based) is (AFAIK) largely irrelevant, except for error reporting. Sterling .