summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-23 06:22:48 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-23 06:22:48 +0000
commitbcf67b862b44ea3b0ddb453895983915f80981fe (patch)
tree4383f15d23bc96dc0dd2fd4e5b529db2297617cc /test
parent26fcd231081b7fa9fc31fb0ab317467c3f22243b (diff)
downloadruby-bcf67b862b44ea3b0ddb453895983915f80981fe.tar.gz
ruby-bcf67b862b44ea3b0ddb453895983915f80981fe.tar.xz
ruby-bcf67b862b44ea3b0ddb453895983915f80981fe.zip
* iseq.c (iseq_s_disasm): return nil for native methods.
[ruby-core:27226], [Bug#2499] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_method.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_method.rb b/test/ruby/test_method.rb
index c60f7fa8a..d5d6a0e68 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