summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2021-06-14 18:02:32 -0700
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:36 -0400
commitf16ec70e4fe90028d8584b5447f447c429024dde (patch)
treeb42771bb511813f25547bdb64fc69f5585d6276a /yjit.rb
parentd1d3d2c0aab39511258c5c75b34396601a94f6f5 (diff)
Allow yjit.rb to work with frozen strings
Diffstat (limited to 'yjit.rb')
-rw-r--r--yjit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit.rb b/yjit.rb
index cd3ad4d652..6f7fdb41b3 100644
--- a/yjit.rb
+++ b/yjit.rb
@@ -6,7 +6,7 @@ module YJIT
blocks = YJIT.blocks_for(iseq)
return if blocks.empty?
- str = ""
+ str = String.new
str << iseq.disasm
str << "\n"