summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-18 12:28:50 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-05-18 12:28:50 +0900
commitb02c10b2407447cf8a6d6a001b745d7790a0ca61 (patch)
tree31744835e26b95466df5bde9c539bcf25b31e973 /compile.c
parentfa7addebb498d92d059a020a1a9739e5522b27dc (diff)
built-in method call must not have a receiver
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 3474a8fe9d..6ce68e5443 100644
--- a/compile.c
+++ b/compile.c
@@ -7034,6 +7034,7 @@ compile_call(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node, in
NODE *args_node = node->nd_args;
if (UNLIKELY(iseq_has_builtin_function_table(iseq)) &&
+ (type == NODE_VCALL || type == NODE_FCALL) &&
(builtin_func = iseq_builtin_function_name(mid)) != NULL) {
if (parent_block != NULL) {