[MacRuby] #870: Array#flatten can't copy status of untrust.
MacRuby
ruby-noreply at macosforge.org
Mon Aug 23 01:59:10 PDT 2010
#870: Array#flatten can't copy status of untrust.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Test Script:
{{{
#!ruby
$ cat test_flatten.rb
def assert_equal(a, b)
p b
p a == b
puts "-----"
end
a = [[1, 2], 3]
a.taint
a.untrust
b = a.flatten
assert_equal(true, b.tainted?)
assert_equal(true, b.untrusted?)
}}}
Result of Ruby 1.9.1:
{{{
$ ruby test_flatten.rb
true
true
-----
true
true
-----
}}}
Result of MacRuby Trunk:
{{{
$ macruby test_flatten.rb
true
true
-----
false
false
-----
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/870>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list