diff --git a/spec.html b/spec.html index 0c5733c..f00e407 100644 --- a/spec.html +++ b/spec.html @@ -675,8 +675,31 @@

Iterator.prototype.find ( _fn_ )

Iterator.prototype [ @@toStringTag ]

-

The initial value of the @@toStringTag property is the String value "Iterator".

-

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.

+

`Iterator.prototype[@@toStringTag]` is an accessor property with attributes { [[Enumerable]]: *false*, [[Configurable]]: *true* }. The [[Get]] and [[Set]] attributes are defined as follows:

+ + +

get Iterator.prototype [ @@toStringTag ]

+

The value of the [[Get]] attribute is a built-in function that requires no arguments. It performs the following steps when called:

+ + 1. Return *"Iterator"*. + +
+ + +

set Iterator.prototype [ @@toStringTag ]

+

The value of the [[Set]] attribute is a built-in function that takes an argument _v_. It performs the following steps when called:

+ + 1. Let _O_ be ? RequireObjectCoercible(*this* value). + 1. If _O_ is %Iterator.prototype%, then + 1. Return *undefined*. + 1. Let _desc_ be ? _O_.[[GetOwnProperty]](@@toStringTag). + 1. If IsDataDescriptor(_desc_) is *true* and _desc_.[[Writable]] is *false*, then + 1. Return *undefined*. + 1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _v_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. + 1. Perform ? _O_.[[DefineOwnProperty]](@@toStringTag, _newDesc_). + 1. Return *undefined*. + +
@@ -952,8 +975,31 @@

AsyncIterator.prototype.find ( _fn_ )

AsyncIterator.prototype [ @@toStringTag ]

-

The initial value of the @@toStringTag property is the String value "Async Iterator".

-

This property has the attributes { [[Writable]]: *false*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.

+

`AsyncIterator.prototype[@@toStringTag]` is an accessor property with attributes { [[Enumerable]]: *false*, [[Configurable]]: *true* }. The [[Get]] and [[Set]] attributes are defined as follows:

+ + +

get AsyncIterator.prototype [ @@toStringTag ]

+

The value of the [[Get]] attribute is a built-in function that requires no arguments. It performs the following steps when called:

+ + 1. Return *"AsyncIterator"*. + +
+ + +

set AsyncIterator.prototype [ @@toStringTag ]

+

The value of the [[Set]] attribute is a built-in function that takes an argument _v_. It performs the following steps when called:

+ + 1. Let _O_ be ? RequireObjectCoercible(*this* value). + 1. If _O_ is %AsyncIterator.prototype%, then + 1. Return *undefined*. + 1. Let _desc_ be ? _O_.[[GetOwnProperty]](@@toStringTag). + 1. If IsDataDescriptor(_desc_) is *true* and _desc_.[[Writable]] is *false*, then + 1. Return *undefined*. + 1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _v_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }. + 1. Perform ? _O_.[[DefineOwnProperty]](@@toStringTag, _newDesc_). + 1. Return *undefined*. + +