Friday afternoon scoping quiz

Dmitry A. Soshnikov dmitry.soshnikov at gmail.com
Fri Feb 5 15:19:52 PST 2010


Hello P,

>Scope chain (f): [
>  global,
>  {foo: undefined, bar: undefined},
>  {foo: 20, test: function () {...}},
>  {activation object of 'f' context}
>]

Sorry, scope chain of 'f' context sure will *not* contain object added by the
'with' statement (my typo), scope chain above was described for 'test' context. And for
'f' is:

Scope chain (f): [
  global,
  {foo: undefined, bar: 21},
  {activation object of 'f' context}
]

/ds



More information about the es-discuss mailing list