[macruby-changes] [3661] MacRuby/trunk
source_changes at macosforge.org
source_changes at macosforge.org
Sun Feb 28 06:53:32 PST 2010
Revision: 3661
http://trac.macosforge.org/projects/ruby/changeset/3661
Author: eloy.de.enige at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100228/7b80bce4/attachment.html>
More information about the macruby-changes
mailing list