From 05b0c263e3c41db24d9cb02174f6ee2db77a5bd5 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 1 Dec 2022 04:16:28 -0800 Subject: [PATCH] support String parameters in Iterator.from and AsyncIterator.from (#250) --- 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