Skip to content

Commit

Permalink
throw when this value is Iterator.prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Oct 12, 2023
1 parent e298671 commit b15c19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Expand Up @@ -305,7 +305,7 @@ <h1>set Iterator.prototype.constructor</h1>
<emu-alg>
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*.
Expand Down Expand Up @@ -607,7 +607,7 @@ <h1>set Iterator.prototype [ @@toStringTag ]</h1>
<emu-alg>
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*.
Expand Down

0 comments on commit b15c19e

Please sign in to comment.