aboutsummaryrefslogtreecommitdiffstats
path: root/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index 9230935819..a6ce631513 100644
--- a/compile.c
+++ b/compile.c
@@ -5950,6 +5950,7 @@ iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
}
break;
case TS_FUNCPTR:
+ if (!RTEST(op)) rb_raise(rb_eArgError, "cannot load funcptr");
argv[j] = op;
break;
default: