Remove tainted and trusted features

Already these had been announced to be removed in 3.2.
This commit is contained in:
Nobuyoshi Nakada 2021-12-26 18:07:12 +09:00
parent 81c248924d
commit 39bc5de833
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
Notes: git 2021-12-27 00:34:23 +09:00
14 changed files with 12 additions and 308 deletions

View file

@ -57,18 +57,4 @@ class Test_String_Fstring < Test::Unit::TestCase
str.freeze
assert_fstring(str) {|s| assert_instance_of(S, s)}
end
def test_shared_string_safety
_unused = -('a' * 30).force_encoding(Encoding::ASCII)
begin
verbose_back, $VERBOSE = $VERBOSE, nil
str = ('a' * 30).force_encoding(Encoding::ASCII).taint
ensure
$VERBOSE = verbose_back
end
frozen_str = Bug::String.rb_str_new_frozen(str)
assert_fstring(frozen_str) {|s| assert_equal(str, s)}
GC.start
assert_equal('a' * 30, str, "[Bug #16151]")
end
end