9.1.10.1 OrdinaryDelete ( O, P )

当使用对象 O 和属性键 P 调用抽象操作 OrdinaryDelete 时,采取以下步骤:

  1. 断言:IsPropertyKey(P) 为 true。

  2. 使 desc 变为 ? O.[[GetOwnProperty]](P)。

  3. 使 desc 变为 ? O.[[GetOwnProperty]](P)。

  4. 如果 desc.[[Configurable]] 为 true,那么

a. 从 O 中删除名为 P 的属性。

b. 返回 true

5.返回 false

results matching ""

    No results matching ""