?
u
m
/
p
1-9
0
`
同一个
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
匿名 export default
声明的一部分,其函数代码因此总是严格模式代码。
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
每个通过
当处理产生式实例:
时,使用以下语法细化对
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
arguments
、super
、this
或 new.target
定义局部绑定;在其内部的此类引用必须解析为词法外层环境中的绑定。尽管 super
,但步骤 super
的 super
所需状态通过捕获的 env 可用。
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
The syntax-directed operation
yield
后紧随的语法上下文需要使用
The syntax-directed operation
The syntax-directed operation
匿名 export default
声明的一部分,因此其函数代码总是严格模式代码。
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
throw
方法抛出的异常会被传播。其next
类似处理。throw
方法,则该抛出将终止 yield*
循环。但需先给予 iterator 清理机会。yield*
协议违规:iterator 无 throw
方法。The syntax-directed operation
The syntax-directed operation
匿名 export default
声明中。
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
类定义始终是严格模式代码。
若未出现
await
为 The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
本规范中未列出的所有产生式替代都隐式具有如下默认定义:
The syntax-directed operation
The syntax-directed operation
本规范中未列出的产生式替代默认使用以下定义:
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation
为便于规范说明,私有方法与访问器与私有字段一起被包含在类实例的 [[PrivateElements]] 槽中。然而,任意给定对象要么拥有该类定义的全部私有方法与访问器,要么一个也没有。该特性被设计为允许实现选择不对每个方法或访问器单独跟踪的策略来实现私有方法与访问器。
例如,实现可以将实例私有方法直接与其对应的 this
值运行。随后在对象上查找一个实例私有方法的过程即是检查定义该方法的类
这不同于私有字段:由于字段初始化器在类实例化期间可能抛出,单个对象可能只拥有某个类私有字段的真子集,因此一般必须单独跟踪私有字段。
It is defined piecewise over the following productions:
constructor(...args) { super(...args); }
。最显著区别是上述 ECMAScript 源码会可观察地调用 %Array.prototype%
上的 constructor() {}
。The syntax-directed operation
当 [Await] 参数存在时,await
被解析为
当 await
可以被解析为标识符。包括以下情形:
不同于
The syntax-directed operation
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
The syntax-directed operation
处理产生式实例:
时,对
The syntax-directed operation
The syntax-directed operation
The syntax-directed operation UNKNOWN takes UNPARSEABLE ARGUMENTS. It is defined piecewise over the following productions:
The abstract operation
尾位置调用仅在严格模式代码中定义,这是因为存在常见的非标准语言扩展(参见
The syntax-directed operation
紧随其后的 return
It is defined piecewise over the following productions:
The abstract operation PrepareForTailCall takes no arguments and returns
尾位置调用必须在调用目标函数前释放与当前正在执行的函数执行上下文关联的任何瞬态内部资源,或复用这些资源以支持目标函数。
例如,尾位置调用应当只按“目标函数激活记录大小减去调用方激活记录大小”的差额增长实现的激活记录栈;若目标函数的激活记录更小,则栈总大小应减小。