mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Do not need to take target_class from the upper proc.
Since it is already set in `mrb_proc_new()`.
This commit is contained in:
+1
-1
@@ -69,7 +69,7 @@ closure_setup(mrb_state *mrb, struct RProc *p)
|
||||
e = ci->env;
|
||||
}
|
||||
else {
|
||||
struct RClass *tc = MRB_PROC_TARGET_CLASS(up);
|
||||
struct RClass *tc = MRB_PROC_TARGET_CLASS(p);
|
||||
|
||||
e = env_new(mrb, up->body.irep->nlocals);
|
||||
ci->env = e;
|
||||
|
||||
Reference in New Issue
Block a user