[MacRuby] #1165: Giving an invalid type to Pointer.new should not assert

MacRuby ruby-noreply at macosforge.org
Wed Feb 23 19:35:45 PST 2011


#1165: Giving an invalid type to Pointer.new should not assert
----------------------------------------+-----------------------------------
 Reporter:  vincent.isambart@…          |       Owner:  lsansonetti@…        
     Type:  defect                      |      Status:  new                  
 Priority:  minor                       |   Milestone:  MacRuby 1.0          
Component:  MacRuby                     |    Keywords:                       
----------------------------------------+-----------------------------------
 {{{
 $ macruby -e 'Pointer.new("^")'
 Assertion failed: (len > 0), function compile_const_global_string, file
 compiler.cpp, line 603.
 Abort trap
 }}}

 It should not assert, it should probably just throw an exception.

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



More information about the macruby-tickets mailing list