This commit is contained in:
Ilya Kantor 2019-08-02 13:48:10 +03:00
parent d606fb7181
commit e52705e012
4 changed files with 8 additions and 9 deletions

View file

@ -195,7 +195,7 @@ And if a function is called multiple times, then each invocation will have its o
```
```smart header="Lexical Environment is a specification object"
"Lexical Environment" is a specification object. We can't get this object in our code and manipulate it directly. JavaScript engines also may optimize it, discard variables that are unused to save memory and perform other internal tricks, but the visible behavior should be as described.
"Lexical Environment" is a specification object: it only exists "theoretically" in the [language specification](https://tc39.es/ecma262/#sec-lexical-environments) to describe how things work. We can't get this object in our code and manipulate it directly. JavaScript engines also may optimize it, discard variables that are unused to save memory and perform other internal tricks, as long as the visible behavior remains as described.
```