summaryrefslogtreecommitdiff
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
commite6a8408c2cc1639e9ca448d90372d4854947346c (patch)
tree4383f15d23bc96dc0dd2fd4e5b529db2297617cc /iseq.c
parentd3fc1d3e3a42d3105175eed71861cfa56b163ced (diff)
* 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
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 1f00132c74..7a59fce049 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);