diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-11-07 15:51:00 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2015-11-07 15:51:00 +0900 |
| commit | d3b323cf2f2f71c8f5dc823bd52b1a30c2c6ec91 (patch) | |
| tree | 646d70490d7501f8246543a18945f9db47c6a037 /src/vm.c | |
| parent | 8bad1954a40c258679f51d4e97acc4f7e4697309 (diff) | |
| download | mruby-d3b323cf2f2f71c8f5dc823bd52b1a30c2c6ec91.tar.gz mruby-d3b323cf2f2f71c8f5dc823bd52b1a30c2c6ec91.zip | |
PR #2521 did not work for singleton classes for non-class objects; fix #3003
Diffstat (limited to 'src/vm.c')
| -rw-r--r-- | src/vm.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -2208,15 +2208,6 @@ RETRY_TRY_BLOCK: } else { p = mrb_proc_new(mrb, irep->reps[GETARG_b(i)]); - if (c & OP_L_METHOD) { - if (p->target_class->tt == MRB_TT_SCLASS) { - mrb_value klass; - klass = mrb_obj_iv_get(mrb, - (struct RObject *)p->target_class, - mrb_intern_lit(mrb, "__attached__")); - p->target_class = mrb_class_ptr(klass); - } - } } if (c & OP_L_STRICT) p->flags |= MRB_PROC_STRICT; regs[GETARG_A(i)] = mrb_obj_value(p); |
