Skip to content

Commit

Permalink
Normative: change Symbol.iterator fallback from callable check to und…
Browse files Browse the repository at this point in the history
…efined/null check (#272)
  • Loading branch information
michaelficarra committed May 16, 2023
1 parent 0c208fc commit 0938104
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Expand Up @@ -135,8 +135,8 @@ <h1>
</dl>
<emu-alg>
1. If _obj_ is not an Object, throw a *TypeError* exception.
1. Let _method_ be ? Get(_obj_, @@iterator).
1. If IsCallable(_method_) is *false*, then
1. Let _method_ be ? GetMethod(_obj_, @@iterator).
1. If _method_ is *undefined*, then
1. Let _iterator_ be _obj_.
1. Else,
1. Let _iterator_ be ? Call(_method_, _obj_).
Expand Down

0 comments on commit 0938104

Please sign in to comment.