Merge pull request #1006 from Violet-Bora-Lee/patch-2

specifying the property inside Environment Record
This commit is contained in:
Ilya Kantor 2019-05-24 11:50:52 +03:00 committed by GitHub
commit 3a24b0a504
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -140,7 +140,7 @@ So, during the function call we have two Lexical Environments: the inner one (fo
- The inner Lexical Environment corresponds to the current execution of `say`.
It has a single variable: `name`, the function argument. We called `say("John")`, so the value of `name` is `"John"`.
It has a single property: `name`, the function argument. We called `say("John")`, so the value of `name` is `"John"`.
- The outer Lexical Environment is the global Lexical Environment.
It has `phrase` and the function itself.