#1337: 3 tests in test_vm became failure after commited 'c1833dd1d2764711f3ea658d7e1108e62057dddb'. ------------------------------+--------------------------------------------- Reporter: kouji@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: Component: MacRuby | Keywords: 0.11-blocker ------------------------------+--------------------------------------------- Comment(by kouji@…): This issue is fixed a patch below. However, this changes was removed in c1833dd1d2764711f3ea658d7e1108e62057dddb (see https://github.com/MacRuby/MacRuby/commit/c1833dd1d2764711f3ea658d7e1108e620... ). Laurent, could you check this patch and apply if this patch is correct? {{{ Changes in HEAD Modified object.c diff --git a/object.c b/object.c index dc35d69..0de54a9 100644 --- a/object.c +++ b/object.c @@ -192,6 +192,13 @@ rb_obj_class(VALUE obj) static void init_copy(VALUE dest, VALUE obj) { + if (NATIVE(obj)) { + if (OBJ_TAINTED(obj)) { + OBJ_TAINT(dest); + } + goto call_init_copy; + } + if (OBJ_FROZEN(dest)) { rb_raise(rb_eTypeError, "[bug] frozen object (%s) allocated", rb_obj_classname(dest)); @@ -239,7 +246,7 @@ init_copy(VALUE dest, VALUE obj) } break; } - +call_init_copy: rb_vm_call(dest, selInitializeCopy, 1, &obj); } }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1337#comment:1> MacRuby <http://macruby.org/>