#310: eval throws an exception with backtrace nil ------------------------+--------------------------------------------------- Reporter: d...@… | Owner: lsansone...@… 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/> _______________________________________________ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel