From 9e813c1fc49ac5d1eba6ce38b8a1b44a80bafb91 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Wed, 16 Sep 2020 11:17:23 +0200 Subject: [PATCH] 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. --- test/ruby/test_literal.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb index f5dd093078..679af20bb9 100644 --- a/test/ruby/test_literal.rb +++ b/test/ruby/test_literal.rb @@ -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