From c9076200b5b551eb21207e4c9efbd75b87772e5d Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 1 Dec 2022 05:06:42 -0800 Subject: [PATCH] fixes #247: throw in GetIteratorFlattenable when iterator is non-Object (#253) --- spec.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec.html b/spec.html index aeea2c2..7cc3598 100644 --- a/spec.html +++ b/spec.html @@ -174,7 +174,8 @@

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