update post: Closure and this - How are variables resolved within functions?

This commit is contained in:
2020-08-03 09:37:41 +05:30
parent 1067fccc64
commit cb53ce7ea3
+1
View File
@@ -160,6 +160,7 @@ These two methods are implemented on all types of environments (scope). Here is
| Environment Type | HasThisBinding() | GetThisBinding() | | Environment Type | HasThisBinding() | GetThisBinding() |
|--------|--------|---------------| |--------|--------|---------------|
| function | true/false | [[ThisValue]] |
| block scope | false | - | | block scope | false | - |
| module | true | undefined | | module | true | undefined |
| global | true | global object | | global | true | global object |