Skip to content

Commit

Permalink
fixes #247: throw in GetIteratorFlattenable when iterator is non-Obje…
Browse files Browse the repository at this point in the history
…ct (#253)
  • Loading branch information
michaelficarra committed Dec 1, 2022
1 parent 2496da5 commit c907620
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec.html
Expand Up @@ -174,7 +174,8 @@ <h1>
1. Set _alreadyAsync_ to *true*.
1. Else,
1. Let _iterator_ be ? Call(_method_, _obj_).
1. Let _nextMethod_ be ? GetV(_iterator_, *"next"*).
1. If _iterator_ is not an Object, throw a *TypeError* exception.
1. Let _nextMethod_ be ? Get(_iterator_, *"next"*).
1. If IsCallable(_nextMethod_) is *false*, throw a *TypeError* exception.
1. Let _iteratorRecord_ be the Iterator Record { [[Iterator]]: _iterator_, [[NextMethod]]: _nextMethod_, [[Done]]: *false* }.
1. If _hint_ is ~async~ and _alreadyAsync_ is *false*, then
Expand Down

0 comments on commit c907620

Please sign in to comment.