diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-23 06:22:48 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-23 06:22:48 +0000 |
commit | bcf67b862b44ea3b0ddb453895983915f80981fe (patch) | |
tree | 4383f15d23bc96dc0dd2fd4e5b529db2297617cc /iseq.c | |
parent | 26fcd231081b7fa9fc31fb0ab317467c3f22243b (diff) | |
download | ruby-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 'iseq.c')
-rw-r--r-- | iseq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1015,7 +1015,7 @@ iseq_s_disasm(VALUE klass, VALUE body) if ((iseq = rb_method_get_iseq(body)) != 0) { ret = rb_iseq_disasm(iseq->self); } - else { + else if (rb_obj_is_proc(body)) { rb_proc_t *proc; VALUE iseqval; GetProcPtr(body, proc); |