[MacRuby-devel] [MacRuby] #799: Abort occurs when will raise LocalJumpError with Proc.

MacRuby ruby-noreply at macosforge.org
Fri Jul 16 09:54:28 PDT 2010


#799: Abort occurs when will raise LocalJumpError with Proc.
----------------------------------+-----------------------------------------
 Reporter:  watson1978@…          |       Owner:  lsansonetti@…        
     Type:  defect                |      Status:  new                  
 Priority:  blocker               |   Milestone:                       
Component:  MacRuby               |    Keywords:                       
----------------------------------+-----------------------------------------
 Test Script:
 {{{
 $ cat test_proc_2.rb
 def get_me_a_return
   Proc.new { return 42 }
 end
 get_me_a_return.call  # => LocalJumpError: unexpected return
 }}}

 Result of MacRuby Trunk:
 {{{
 $ macruby test_proc_2.rb
 uncaught Objective-C/C++ exception...
 terminate called after throwing an instance of
 'RoxorReturnFromBlockException*'
 zsh: abort      macruby test_proc_2.rb
 }}}

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/799>
MacRuby <http://macruby.org/>



More information about the MacRuby-devel mailing list