From e6a8408c2cc1639e9ca448d90372d4854947346c Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 23 Dec 2009 06:22:48 +0000 Subject: * iseq.c (iseq_s_disasm): return nil for native methods. [ruby-core:27226], [Bug#2499] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_method.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_method.rb') diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb index c60f7fa8a8..d5d6a0e68d 100644 --- a/test/ruby/test_method.rb +++ b/test/ruby/test_method.rb @@ -82,6 +82,7 @@ class TestMethod < Test::Unit::TestCase o = Object.new def o.foo; end assert_nothing_raised { RubyVM::InstructionSequence.disasm(o.method(:foo)) } + assert_nothing_raised { RubyVM::InstructionSequence.disasm("x".method(:upcase)) } end def test_new -- cgit v1.2.3