Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hash#{clone, dup} will copy status of untrust.
Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions a = { 1 => 'one', 2 => 'two', 3 => 'three' } a.untrust a.taint a.freeze b = a.clone assert_equal(a.untrusted?, b.untrusted?) assert_equal(a.tainted?, b.tainted?) assert_equal(a.frozen?, b.frozen?) c = a.dup assert_equal(a.untrusted?, c.untrusted?) assert_equal(a.tainted?, c.tainted?) assert_equal(false, c.frozen?) puts :ok }}} git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5306 23306eb0-4c56-4727-a40e-e92c0eb68959
- Loading branch information