Skip to content

Generator.prototype.next should return IteratorNext #1489

Open
@RReverser

Description

@RReverser

Generator.prototype.next is currently bound with a return of Result<JsValue, JsValue>, but it should use Result<IteratorNext, JsValue> for consistency with regular iterators instead (as it returns same object of { value, done }).

This would be a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-changeTracking breaking changes for the next major version bump (if ever)js-sysIssues related to the `js-sys` crate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions