Generator.prototype.next should return IteratorNext #1489
Labels
breaking-change
Tracking breaking changes for the next major version bump (if ever)
js-sys
Issues related to the `js-sys` crate
Generator.prototype.next
is currently bound with a return ofResult<JsValue, JsValue>
, but it should useResult<IteratorNext, JsValue>
for consistency with regular iterators instead (as it returns same object of{ value, done }
).This would be a breaking change.
The text was updated successfully, but these errors were encountered: