#343: 'IRB.conf[:MAIN_CONTEXT].to_s‘ crashes
------------------------+---------------------------------------------------
 Reporter:  d...@…       |       Owner:  lsansone...@…        
     Type:  defect      |      Status:  new                  
 Priority:  major       |   Milestone:  MacRuby 0.5          
Component:  MacRuby     |    Keywords:                       
------------------------+---------------------------------------------------

Comment(by lsansone...@…):

 The problem is in lib/irb.rb, in the method that defines #inspect on
 @CONF.

 Changing

 {{{
     for k, v in sort{|a1, a2| a1[0].id2name <=> a2[0].id2name}
 }}}

 to

 {{{
     sort{|a1, a2| a1[0].id2name <=> a2[0].id2name}.each do |k, v|
 }}}

 fixes the problem. Surely a problem in the parser, where we handle
 NODE_FOR.

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

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to