mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Should update ci->env to share the environment; fix #4073
This commit is contained in:
@@ -292,6 +292,7 @@ create_proc_from_string(mrb_state *mrb, char *s, mrb_int len, mrb_value binding,
|
||||
if (ci->argc < 0) bidx = 2;
|
||||
else bidx += 1;
|
||||
MRB_ENV_SET_BIDX(e, bidx);
|
||||
ci->env = e;
|
||||
}
|
||||
proc->e.env = e;
|
||||
proc->flags |= MRB_PROC_ENVSET;
|
||||
|
||||
Reference in New Issue
Block a user