Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Fixed yielded arrays of 1 element bug when using Enumerator::… #5045

Closed
wants to merge 1 commit into from

Conversation

glucero
Copy link
Contributor

@glucero glucero commented Feb 15, 2018

This fixes: #5044

This reverts commit cb25efe.

The code reverted in this pull request comes from #2376 and the related issue #2458

The test case in 2376 still works with the code removed.

jruby:master > bin/jruby -e "puts Enumerator.new{|y| y << [42]}.first.inspect"
[42]

Verified

This commit was signed with the committer’s verified signature. The key has expired.
nomadium Miguel Landaeta
…Yielder#first"

This reverts commit cb25efe.
@enebo
Copy link
Member

enebo commented Feb 15, 2018

@glucero how about two test cases in #3814?

@glucero
Copy link
Contributor Author

glucero commented Feb 15, 2018

Please disregard - I mistakenly had the previous version built on my system when I tested the older test case. This revert causes a regression.

Closing.

@glucero glucero closed this Feb 15, 2018
@enebo
Copy link
Member

enebo commented Feb 15, 2018

@glucero we appreciate you looking into this. Block array dereferencing logic is complicated...to say the least.

@enebo enebo added this to the Invalid or Duplicate milestone Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lazy map adds extra array layer to single-element array output
2 participants