¡@

Home 

javascript Programming Glossary: variableenvironment

Why do catch clauses have their own lexical environment?

http://stackoverflow.com/questions/15034864/why-do-catch-clauses-have-their-own-lexical-environment

LexicalEnvironment is switched to the new one while the VariableEnvironment whose environment record holds bindings created by VariableStatements.. declared from within the catch but in the current VariableEnvironment a 1 console.log typeof ex undefined no binding try console.log.. are often accepted its scope will become the current VariableEnvironment so it will not be able to access the exception try throw some..

About closure, LexicalEnvironment and GC

http://stackoverflow.com/questions/8665781/about-closure-lexicalenvironment-and-gc

a code the enginge creates a LexicalEnvironment LE and a VariableEnvironment VE for function code these 2 objects are exactly the same reference.. code are stored in the environment record componentof VariableEnvironment ECMAScript v5 10.5 and this is the basic concept for closure.. line var f2 f1 our object graph would be global f2 f2's VariableEnvironment f1's VariableEnvironment o so as from my little knowledge if..