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

MacRuby ruby-noreply at macosforge.org
Fri Aug 20 19:30:04 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@…):

 Even better reduction actually:
 {{{
 #!ruby

 def complete
   raise Exception, catch(:ambiguous) { throw :ambiguous }
 end

 begin
   raise
 rescue
   # crashes here
   complete
 end
 }}}

 Also added the "raise Exception" just to avoid dealing with the
 `TypeError` exception (`exception object expected (TypeError)`)

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



More information about the macruby-tickets mailing list