Skip to content

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

Closed
glucero wants to merge 1 commit intojruby:masterfrom
glucero:master
Closed

Revert "Fixed yielded arrays of 1 element bug when using Enumerator::…#5045
glucero wants to merge 1 commit intojruby:masterfrom
glucero:master

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]

@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