summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2023-02-10 16:02:20 +0900
committerKoichi Sasada <ko1@atdot.net>2023-02-10 17:55:25 +0900
commitbe94808282e50d3ecaa1392ffc38c9ec89e3438b (patch)
treef1e98d44d7743ce8785ac257282ba8082f831bd5 /internal
parent38ecf08ba16b7e8946ac414f4f8c7ee155b34083 (diff)
downloadruby-be94808282e50d3ecaa1392ffc38c9ec89e3438b.tar.gz
use correct svar even if env is escaped
This patch is follo-up of 0a82bfe. Without this patch, if env is escaped (Proc'ed), strange svar can be touched. This patch tracks escaped env and use it.
Diffstat (limited to 'internal')
-rw-r--r--internal/imemo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/imemo.h b/internal/imemo.h
index 8d506dda7d..57a705ce77 100644
--- a/internal/imemo.h
+++ b/internal/imemo.h
@@ -82,7 +82,7 @@ struct vm_ifunc_argc {
/*! IFUNC (Internal FUNCtion) */
struct vm_ifunc {
VALUE flags;
- struct rb_control_frame_struct *owner_cfp;
+ VALUE *svar_lep;
rb_block_call_func_t func;
const void *data;
struct vm_ifunc_argc argc;