Actions
Bug #18390
closedEnumerator::Lazy#find returns invalid value
Bug #18390:
Enumerator::Lazy#find returns invalid value
Description
Files
Actions
Added by cvss (Kirill Vechera) almost 5 years ago. Updated almost 5 years ago.
Description
Files
| ruby_bug.png (8.8 KB) ruby_bug.png | cvss (Kirill Vechera), 12/06/2021 05:25 PM |
I cannot reproduce the issue
$ ~/local/bin/ruby -ve 'p [1, 2, 3, 4].lazy.find(&:even?)'
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]
2
Could you please elaborate what did you do? How did you install your ruby? What platform are you using? Is the script complete? How did you run the script?
I'm not sure about build parameters, I found this bug at the ruby playground https://try.ruby-lang.org/ I'm attaching a screenshot.
I just found that playground runs Opal, not MRI. Sorry for incorrect addressee, please close the issue.
Oh that's good to know. I see you have created a ticket for Opal: https://github.com/opal/opal/issues/2367 . Thank you for your report anyway!