Revision: 3661 http://trac.macosforge.org/projects/ruby/changeset/3661 Author: eloy.de.enige@gmail.com Date: 2010-02-28 06:53:32 -0800 (Sun, 28 Feb 2010) Log Message: ----------- Copy the `trusted' state when creating a copy with #dup. Modified Paths: -------------- MacRuby/trunk/object.c Removed Paths: ------------- MacRuby/trunk/spec/frozen/tags/macruby/core/object/dup_tags.txt Modified: MacRuby/trunk/object.c =================================================================== --- MacRuby/trunk/object.c 2010-02-28 14:53:20 UTC (rev 3660) +++ MacRuby/trunk/object.c 2010-02-28 14:53:32 UTC (rev 3661) @@ -353,6 +353,8 @@ } dup = rb_obj_alloc(rb_obj_class(obj)); init_copy(dup, obj); + if (OBJ_UNTRUSTED(obj)) + OBJ_UNTRUST(dup); return dup; } Deleted: MacRuby/trunk/spec/frozen/tags/macruby/core/object/dup_tags.txt =================================================================== --- MacRuby/trunk/spec/frozen/tags/macruby/core/object/dup_tags.txt 2010-02-28 14:53:20 UTC (rev 3660) +++ MacRuby/trunk/spec/frozen/tags/macruby/core/object/dup_tags.txt 2010-02-28 14:53:32 UTC (rev 3661) @@ -1 +0,0 @@ -fails:Object#dup preserves untrusted state from the original
participants (1)
-
source_changes@macosforge.org