summaryrefslogtreecommitdiffstats
path: root/iseq.c
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 /iseq.c
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 'iseq.c')
-rw-r--r--iseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iseq.c b/iseq.c
index 1f00132c7..7a59fce04 100644
--- a/iseq.c
+++ b/iseq.c
@@ -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);