Update article.md

This commit is contained in:
LeviDing 2020-02-23 17:49:11 +08:00 committed by GitHub
parent 188f497f86
commit 33c2a4e39d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {