Subj : Re: why does it not print Hello twice? To : netscape.public.mozilla.jseng From : Sterling Bates Date : Thu Apr 15 2004 01:18 pm Brendan Eich wrote: > Brendan Eich wrote: > >> Cloned function objects all share a reference in the original, >> compiler-created function object's JSFunction private. This is >> necessary to give each clone a separate parent slot (ECMA-262 Edition >> 3 calls this the [[Scope]] internal property). > > > > See in particular http://www.mozilla.org/js/language/E262-3.pdf, section > 13.1.2 "Joined Objects", especially the NOTE. All of section 13 is > worth reading, keeping an eye out for [[Scope]]. Section 13, under "The production FunctionExpression", item #2 should probably read "Return Result(1)" otherwise it looks like a stack overflow waiting to happen :) Sterling .