1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals

* That is, for plain string literals, not interpolated.
* The test below is very similar and uses the same check.
This commit is contained in:
Benoit Daloze 2020-09-16 11:17:23 +02:00
parent 9d8eeccf06
commit 9e813c1fc4

View file

@ -194,7 +194,7 @@ class TestRubyLiteral < Test::Unit::TestCase
assert_predicate(str, :frozen?)
assert_raise_with_message(FrozenError, /created at #{Regexp.quote(f)}:#{n}/) {
str << "x"
}
} unless ENV['RUBY_ISEQ_DUMP_DEBUG']
end
def test_debug_frozen_string_in_array_literal