Merge pull request #6225 from dearblue/revert-3991

Revert "Adjust environment when `mrb_exec_irep` happened."
This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-04-04 08:19:57 +09:00
committed by GitHub
-10
View File
@@ -142,16 +142,6 @@ envadjust(mrb_state *mrb, mrb_value *oldbase, mrb_value *newbase, size_t oldsize
(st = e->stack) && (size_t)(st - oldbase) < oldsize) {
e->stack += delta;
}
if (ci->proc && MRB_PROC_ENV_P(ci->proc) && e != MRB_PROC_ENV(ci->proc)) {
e = MRB_PROC_ENV(ci->proc);
if (e && MRB_ENV_ONSTACK_P(e) &&
(st = e->stack) && (size_t)(st - oldbase) < oldsize) {
e->stack += delta;
}
}
ci->stack += delta;
ci++;
}