summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index db4d6d8..1940c5a 100644
--- a/vm.c
+++ b/vm.c
@@ -679,7 +679,6 @@ rb_proc_create(VALUE klass, const rb_block_t *block,
proc->safe_level = safe_level;
proc->is_from_method = is_from_method;
proc->is_lambda = is_lambda;
- proc->envval = envval;
return procval;
}
@@ -712,6 +711,14 @@ rb_vm_make_proc_lambda(rb_thread_t *th, const rb_block_t *block, VALUE klass, in
return procval;
}
+VALUE
+rb_vm_proc_envval(const rb_proc_t *proc)
+{
+ VALUE envval = VM_ENV_EP_ENVVAL(proc->block.ep);
+ return envval;
+}
+
+
/* Binding */
VALUE