mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #5733 from dearblue/patch-5402
Do not expand "included class" in `mrb_proc_new()`.
This commit is contained in:
+1
-9
@@ -52,15 +52,7 @@ mrb_proc_new(mrb_state *mrb, const mrb_irep *irep)
|
||||
struct RClass *tc = NULL;
|
||||
|
||||
if (ci->proc) {
|
||||
if (ci->proc->color != MRB_GC_RED) {
|
||||
tc = MRB_PROC_TARGET_CLASS(ci->proc);
|
||||
}
|
||||
else {
|
||||
tc = mrb_vm_ci_target_class(ci);
|
||||
if (tc && tc->tt == MRB_TT_ICLASS) {
|
||||
tc = tc->c;
|
||||
}
|
||||
}
|
||||
tc = MRB_PROC_TARGET_CLASS(ci->proc);
|
||||
}
|
||||
if (tc == NULL) {
|
||||
tc = mrb_vm_ci_target_class(ci);
|
||||
|
||||
Reference in New Issue
Block a user