[Yarv-devel] some fun bugs

SASADA Koichi ko1 at atdot.net
Wed Mar 2 10:53:05 EST 2005


Hi,

 >> 3: calling a method with wrong number of args:
 >>
 >> def foo
 >>
 >> end
 >> foo(1)
 >>
 >> gives:
 >> ./benchmark/bm_4col.rb:6: [BUG] thread_backtrace:
 >> unkown instruction (-10741130)
 >>
 >> notice even that "unknown" is misspelled :)
 >>
 > mmm... i'll fix it. This is caused by bugs of creating backtrace 
process.
 >
 >> 4: return from block
 >>  def foo
 >>   3.timed do    return
 >>   end
 >>  end
 >>
 >>  foo
 >> ./benchmark/bm_4col.rb:15: [BUG] thread_backtrace:
 >> unkown instruction (-8024)

Fixed their :)

in `method_missing': undefined method `timed' for 3:Fixnum (NoMethodError)
         from ../test.rb:8:in `foo'
         from ../test.rb:17

Thanks,
SASADA Koichi


More information about the Yarv-devel mailing list