[MacRuby] #860: Assertion fails when MacRuby should throw an exception of "OptionParser::AmbiguousOption".

MacRuby ruby-noreply at macosforge.org
Fri Aug 20 19:26:49 PDT 2010


#860: Assertion fails when MacRuby should throw an exception of
"OptionParser::AmbiguousOption".
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------

Comment(by martinlagardette@…):

 Reduction:

 {{{
 #!ruby

 def complete
   raise catch(:ambiguous) {
     throw :ambiguous
     raise "Error"
   }
 end

 begin
   complete
 rescue
   # crashes here
   complete
 end
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/860#comment:1>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list