From abe12d8b96be3c12618811f22ca01788366f99f8 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@ruby-lang.org>
Date: Thu, 29 Aug 2019 16:58:21 +0900
Subject: Freeze method reference operator object

[Feature #16103]
---
 insns.def | 1 +
 1 file changed, 1 insertion(+)

(limited to 'insns.def')

diff --git a/insns.def b/insns.def
index 02330147c4..3b82d4ec93 100644
--- a/insns.def
+++ b/insns.def
@@ -707,6 +707,7 @@ methodref
 (VALUE ret)
 {
     ret = rb_obj_method(val, ID2SYM(id));
+    RB_OBJ_FREEZE_RAW(ret);
 }
 
 /**********************************************************/
-- 
cgit v1.2.3

