[[Scope]] internal 属性 在 ES6 中被什么替换了?

What has the [[Scope]] internal property been replaced with in ES6?

ES6 中的 [[Scope]] 内部 属性 被什么替换了?

我在 ES5 中可以找到它,但在 ES6 中没有提到它。

似乎 [[Scope]] 在 ES2015 中被 [[Environment]] 取代了。 Section 9.2.4 (FunctionInitialize) 状态:

  1. Set the [[Environment]] internal slot of F to the value of Scope.

而 ES5 在 section 13.2 (Creating Function Objects) 中这样说:

  1. Set the [[Scope]] internal property of F to the value of Scope.