w3c/webidl2.js

Update ongoing promise in async iterator `return()` method

Closed this issue ยท 2 comments

There's an edge case with the current Web IDL bindings for async iterators where manually calling return(); next() could result in the next() promise resolving before the return() promise. The latest version of the Web IDL specification fixes this by updating the "ongoing promise" in the async iterator return() method.

Apologies, I mean to file this bug on the (very similarly named) webidl2js project. ๐Ÿ˜…

Since the aforementioned spec change does not affect the Web IDL syntax, no action needs to be taken on the part of webidl2.js. Closing.

Haha that often confused myself too ๐Ÿ˜‚