From 80c82e0fa45fb73fbe3e33ca401afdfa03ee7c58 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 1 Dec 2022 05:11:51 -0700 Subject: [PATCH] support String parameters in Iterator.from and AsyncIterator.from --- spec.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec.html b/spec.html index b677e23..6541124 100644 --- a/spec.html +++ b/spec.html @@ -258,6 +258,7 @@

Iterator.prototype

Iterator.from ( _O_ )

+ 1. If _O_ is a String, set _O_ to ! ToObject(_O_). 1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~sync~). 1. Let _hasInstance_ be ? OrdinaryHasInstance(%Iterator%, _iteratorRecord_.[[Iterator]]). 1. If _hasInstance_ is *true*, then @@ -336,6 +337,7 @@

AsyncIterator.prototype

AsyncIterator.from ( _O_ )

+ 1. If _O_ is a String, set _O_ to ! ToObject(_O_). 1. Let _iteratorRecord_ be ? GetIteratorFlattenable(_O_, ~async~). 1. Let _hasInstance_ be ? OrdinaryHasInstance(%AsyncIterator%, _iteratorRecord_.[[Iterator]]). 1. If _hasInstance_ is *true*, then