Subj : Re: Need a few hints on JS_CompileFunction To : netscape.public.mozilla.jseng From : Sterling Bates Date : Tue May 18 2004 05:53 pm Brendan Eich wrote: > The docs need to be fixed to say that obj and name may be null (both, > one or the other, or neither -- they're independent). Non-null obj with > null name means the function is anonymous, but scoped by obj. Non-null > obj with non-null name is a function-valued property of obj, where the > function object is scoped by obj. Null obj with non-null name is a > named function object with no scope parent. Null obj and name make an > anonymous function with no scope parent. WRT bug 243517, the patch for JS_CompileUCFunctionForPrincipals includes a call to js_inflateString, then checks for a null (NULL?) result. Given this, I should only inflate the string if strlen(name) > 0, correct? Sterling .