[MacRuby-devel] [MacRuby] #832: “Thread.abort_on_exception = true” does not raise the exception in the main thread.

MacRuby ruby-noreply at macosforge.org
Fri Aug 6 10:44:23 PDT 2010


#832: “Thread.abort_on_exception = true” does not raise the exception in the main
thread.
-------------------------------------+--------------------------------------
 Reporter:  eloy.de.enige@…          |       Owner:  lsansonetti@…        
     Type:  defect                   |      Status:  new                  
 Priority:  blocker                  |   Milestone:                       
Component:  MacRuby                  |    Keywords:                       
-------------------------------------+--------------------------------------
 {{{
 % ruby19 -e 'Thread.abort_on_exception = true; Thread.new { foo }; sleep
 1; p :ok'
 -e:1:in `block in <main>': undefined local variable or method `foo' for
 main:Object (NameError)

 % macruby -e 'Thread.abort_on_exception = true; Thread.new { foo }; sleep
 1; p :ok'
 :ok
 }}}

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



More information about the MacRuby-devel mailing list