Re: [whatwg/webidl] Add `async iterable<T>` type to WebIDL (PR #1397)

Regarding strings, I think we should follow the behavior of async iterator helpers's `AsyncIterator.from()`; /cc @bakkot. I cannot tell what that behavior is, however. `Iterator.from()` definitely [accepts strings](https://tc39.es/proposal-iterator-helpers/#sec-iterator.from). But `AynscIterator.from()` [calls](https://tc39.es/proposal-async-iterator-helpers/#sec-asynciterator.from) [GetIteratorFlattenable](https://tc39.es/proposal-iterator-helpers#sec-getiteratorflattenable) with a second parameter whose value is `async`, which is neither `accept-strings` nor `reject-strings`.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/webidl/pull/1397#issuecomment-2021795873
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/webidl/pull/1397/c2021795873@github.com>

Received on Wednesday, 27 March 2024 02:53:13 UTC