ruby-changes:68983
From: John <ko1@a...>
Date: Thu, 21 Oct 2021 08:19:34 +0900 (JST)
Subject: [ruby-changes:68983] f16ec70e4f (master): Allow yjit.rb to work with frozen strings
https://git.ruby-lang.org/ruby.git/commit/?id=f16ec70e4f From f16ec70e4fe90028d8584b5447f447c429024dde Mon Sep 17 00:00:00 2001 From: John Hawthorn <john@h...> Date: Mon, 14 Jun 2021 18:02:32 -0700 Subject: Allow yjit.rb to work with frozen strings --- yjit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yjit.rb b/yjit.rb index cd3ad4d652..6f7fdb41b3 100644 --- a/yjit.rb +++ b/yjit.rb @@ -6,7 +6,7 @@ module YJIT https://github.com/ruby/ruby/blob/trunk/yjit.rb#L6 blocks = YJIT.blocks_for(iseq) return if blocks.empty? - str = "" + str = String.new str << iseq.disasm str << "\n" -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/