ES5: LexicalEnvironment versus VariableEnvironment?

2011-04-19 Thread Axel Rauschmayer
I hope this is the right place to ask this question: When are LexicalEnvironment and VariableEnvironment ever not the same? My understanding, derived from ECMA-262 is as follows: (1) Mainly needed for with, because properties should be found during identifier lookup, but new bindings should be

Re: ES5: LexicalEnvironment versus VariableEnvironment?

2011-04-19 Thread Allen Wirfs-Brock
On Apr 19, 2011, at 9:37 AM, Axel Rauschmayer wrote: I hope this is the right place to ask this question: When are LexicalEnvironment and VariableEnvironment ever not the same? My understanding, derived from ECMA-262 is as follows: (1) Mainly needed for with, because properties should