Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update
$jscomp.makeAsyncIterator
to correctly implement spec change…
…s for when the wrapped sync iterator is missing a `throw` method. Previously, the async iterator would also elide the `throw` method, but github.com/tc39/ecma262/pull/2600 specifies that it should instead provide a `throw` method that (1) closes the underlying sync iterator (via `return`), and (2) throws a new `TypeError` indicating that the wrapped sync iterator was non-conformant. PiperOrigin-RevId: 653268505
- Loading branch information