What changed the internal [[Scope]] property in ES6?

What changed the internal [[Scope]] property in ES6?

I can find it in ES5, but not mention it in ES6.

+4
source share
1 answer

It looks like it [[Scope]]was replaced by [[Environment]]in ES2015. Section 9.2.4 (FunctionInitialize) :

  1. Set the internal span of [[Environment]] F to the scope.

while ES5 talks about this in section 13.2 (Creating Function Objects) :

  1. Set the internal [[Scope]] F property for the scope value.
+3
source

Source: https://habr.com/ru/post/1585115/


All Articles