Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
throw instead of silently doing nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Oct 12, 2023
1 parent e298671 commit f481720
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h1>set Iterator.prototype.constructor</h1>
1. Return *undefined*.
1. Let _desc_ be ? _O_.[[GetOwnProperty]](*"constructor"*).
1. If IsDataDescriptor(_desc_) is *true* and _desc_.[[Writable]] is *false*, then
1. Return *undefined*.
1. Throw a *TypeError* exception.
1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _v_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
1. Perform ? _O_.[[DefineOwnProperty]](*"constructor"*, _newDesc_).
1. Return *undefined*.
Expand Down Expand Up @@ -610,7 +610,7 @@ <h1>set Iterator.prototype [ @@toStringTag ]</h1>
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. Throw a *TypeError* exception.
1. Let _newDesc_ be the PropertyDescriptor { [[Value]]: _v_, [[Writable]]: *true*, [[Enumerable]]: *false*, [[Configurable]]: *true* }.
1. Perform ? _O_.[[DefineOwnProperty]](@@toStringTag, _newDesc_).
1. Return *undefined*.
Expand Down

0 comments on commit f481720

Please sign in to comment.