#793: Iterator is executed more when calls Hash#shift in Hash's Iterator.
----------------------------------+-----------------------------------------
Reporter: watson1...@… | Owner: lsansone...@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
$ cat test_hash_shift.rb
h = {1=>2}
h.each { p h.shift }
}}}
Result of Ruby 1.9.1:
{{{
$ ruby test_hash_shift.rb
[1, 2]
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_hash_shift.rb
[1, 2]
nil
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/793>
MacRuby <http://macruby.org/>
_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel