When does this binding happen in execution context?

时间:2019-04-08 13:22:02

标签: javascript this executioncontext

The creation phase of Execution context includes: 1.Lexical environment 2.Variable environment 3.this binding

However,in this article: https://blog.bitsrc.io/understanding-execution-context-and-execution-stack-in-javascript-1c9ea8642dd0

The author said the creation phase of Execution context includes:

1.Lexical environment

2.Variable environment

What really strange is that it didnt include this binding.And he said that this binding actually happen during Lexical environment.

Each Lexical Environment has three components:

1.Environment Record

2.Reference to the outer environment,

3.This binding

So when does this binding happen actually?Or this is just the difference between ES5 and ES6?

0 个答案:

没有答案