[MacRuby-devel] [MacRuby] #310: eval throws an exception with backtrace nil

MacRuby ruby-noreply at macosforge.org
Sat Aug 8 20:37:46 PDT 2009


#310: eval throws an exception with backtrace nil
------------------------+---------------------------------------------------
 Reporter:  dev@…       |       Owner:  lsansonetti@…           
     Type:  defect      |      Status:  new                     
 Priority:  major       |   Milestone:  MacRuby 0.5             
Component:  MacRuby     |    Keywords:  eval exception backtrace
------------------------+---------------------------------------------------
 {{{
 $ macruby -e 'begin; eval("1a"); rescue Exception => exc; end; p
 exc.backtrace'
 }}}

 produces

 {{{
 nil
 }}}

 This is not allowed and causes IRB to crash after evaluating "1a"
 (without parenthesis)


 When adding this to irb.rb:158

 {{{
 exc.set_backtrace([]) if exc.backtrace.nil?
 }}}

 IRB don't crashes

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



More information about the MacRuby-devel mailing list