[前][次][番号順一覧][スレッド一覧]

ruby-changes:61281

From: Nobuyoshi <ko1@a...>
Date: Mon, 18 May 2020 12:40:15 +0900 (JST)
Subject: [ruby-changes:61281] b02c10b240 (master): built-in method call must not have a receiver

https://git.ruby-lang.org/ruby.git/commit/?id=b02c10b240

From b02c10b2407447cf8a6d6a001b745d7790a0ca61 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 18 May 2020 12:28:50 +0900
Subject: built-in method call must not have a receiver


diff --git a/compile.c b/compile.c
index 3474a8f..6ce68e5 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 https://github.com/ruby/ruby/blob/trunk/compile.c#L7034
     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) {
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]