[MacRuby] #1123: does not process the "ensure" when called the "next".
MacRuby
ruby-noreply at macosforge.org
Thu Jan 20 21:26:15 PST 2011
#1123: does not process the "ensure" when called the "next".
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
$result = []
[1, 2, 3].each do |i|
begin
$result << i
next
ensure
$result << :ensure
end
end
p $result
}}}
Result:
{{{
$ ruby19 test.rb
[1, :ensure, 2, :ensure, 3, :ensure]
$ macruby test.rb
[1, 2, 3]
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1123>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list