[前][次][番号順一覧][スレッド一覧]

ruby-changes:62978

From: Benoit <ko1@a...>
Date: Wed, 16 Sep 2020 18:19:54 +0900 (JST)
Subject: [ruby-changes:62978] 9e813c1fc4 (master): RUBY_ISEQ_DUMP_DEBUG=to_binary never kept the debug information for String literals

https://git.ruby-lang.org/ruby.git/commit/?id=9e813c1fc4

From 9e813c1fc49ac5d1eba6ce38b8a1b44a80bafb91 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Wed, 16 Sep 2020 11:17:23 +0200
Subject: 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.

diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index f5dd093..679af20 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -194,7 +194,7 @@ class TestRubyLiteral < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_literal.rb#L194
       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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]