diff options
author | Koichi Sasada <ko1@atdot.net> | 2023-02-10 16:02:20 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2023-02-10 17:55:25 +0900 |
commit | be94808282e50d3ecaa1392ffc38c9ec89e3438b (patch) | |
tree | f1e98d44d7743ce8785ac257282ba8082f831bd5 /vm_core.h | |
parent | 38ecf08ba16b7e8946ac414f4f8c7ee155b34083 (diff) | |
download | ruby-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 'vm_core.h')
-rw-r--r-- | vm_core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1768,6 +1768,7 @@ rb_vm_living_threads_init(rb_vm_t *vm) typedef int rb_backtrace_iter_func(void *, VALUE, int, VALUE); rb_control_frame_t *rb_vm_get_ruby_level_next_cfp(const rb_execution_context_t *ec, const rb_control_frame_t *cfp); rb_control_frame_t *rb_vm_get_binding_creatable_next_cfp(const rb_execution_context_t *ec, const rb_control_frame_t *cfp); +VALUE *rb_vm_svar_lep(const rb_execution_context_t *ec, const rb_control_frame_t *cfp); int rb_vm_get_sourceline(const rb_control_frame_t *); void rb_vm_stack_to_heap(rb_execution_context_t *ec); void ruby_thread_init_stack(rb_thread_t *th); |