Skip to content

Commit

Permalink
split up the steps and add an assert for better understandability
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Aug 16, 2024
1 parent 63d6584 commit 2db9b31
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -7007,7 +7007,9 @@ <h1>
</dl>
<emu-alg>
1. If _obj_ is not an Object, then
1. If _stringHandling_ is ~reject-primitives~ or _obj_ is not a String, throw a *TypeError* exception.
1. If _primitiveHandling_ is ~reject-primitives~, throw a *TypeError* exception.
Assert: _primitiveHandling_ is ~iterate-string-primitives~.
1. If _obj_ is not a String, throw a *TypeError* exception.
1. Let _method_ be ? GetMethod(_obj_, %Symbol.iterator%).
1. If _method_ is *undefined*, then
1. Let _iterator_ be _obj_.
Expand Down

0 comments on commit 2db9b31

Please sign in to comment.