Update article.md
This commit is contained in:
parent
188f497f86
commit
33c2a4e39d
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ let arr = [f(), f(), f()];
|
||||||
|
|
||||||
A Lexical Environment object dies when it becomes unreachable (just like any other object). In other words, it exists only while there's at least one nested function referencing it.
|
A Lexical Environment object dies when it becomes unreachable (just like any other object). In other words, it exists only while there's at least one nested function referencing it.
|
||||||
|
|
||||||
In the code below, after the nested function is removed, its enclosing Lexical Environment (and hence the `value`) is cleaned from memory;
|
In the code below, after the nested function is removed, its enclosing Lexical Environment (and hence the `value`) is cleaned from memory:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
function f() {
|
function f() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue