diff --git a/spec.html b/spec.html index fdf306d..22781f3 100644 --- a/spec.html +++ b/spec.html @@ -305,7 +305,7 @@

set Iterator.prototype.constructor

1. Let _O_ be ? RequireObjectCoercible(*this* value). 1. If _O_ is %Iterator.prototype%, then - 1. Return *undefined*. + 1. Throw a *TypeError* exception. 1. Let _desc_ be ? _O_.[[GetOwnProperty]](*"constructor"*). 1. If IsDataDescriptor(_desc_) is *true* and _desc_.[[Writable]] is *false*, then 1. Return *undefined*. @@ -607,7 +607,7 @@

set Iterator.prototype [ @@toStringTag ]

1. Let _O_ be ? RequireObjectCoercible(*this* value). 1. If _O_ is %Iterator.prototype%, then - 1. Return *undefined*. + 1. Throw a *TypeError* exception. 1. Let _desc_ be ? _O_.[[GetOwnProperty]](@@toStringTag). 1. If IsDataDescriptor(_desc_) is *true* and _desc_.[[Writable]] is *false*, then 1. Return *undefined*.