Skip to content

Enumerator creation does not propagate keyword arguments #8750

Description

@headius

Enumerators created by methods that normally take blocks does not preserve keyword argument status. Generally the keyword status passed in callInfo is handled at the time of call, but when it is passed in, cleared, and then an Enumerator is produced, it needs to also carry with it the original arguments and kwarg status.

Leads to issues like test/mri/pathname/test_pathname.rb's test_each_line_opts which creates an Enumerator from Pathname#each_line and passes in kwargs. These kwargs get captured for the Enumerator, but the keyword status is lost.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions