Subj : Re: Need a few hints on JS_CompileFunction To : netscape.public.mozilla.jseng From : Sterling Bates Date : Tue May 18 2004 12:14 pm Brann Joly wrote: > I have a few questions about JS_CompileFunction. I did browse > http://lxr.mozilla.org/mozilla/ident?i=JS_CompileFunction but didnt found > any sample use. > > I don't understand what the obj parameter is for. The Apidoc says it's the > "object with wich the function is associated", but why would I want to do |obj| is the parent, or scope, of the function you are creating. I can't tell what happens if left null, but I would assume that the parent is defaulted to global. Sterling .