aboutsummaryrefslogtreecommitdiffstats
path: root/prism/templates/lib
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2023-10-01 12:34:55 +0200
committerKevin Newton <kddnewton@gmail.com>2023-10-02 09:18:56 -0400
commit87dad067e03f98df7a64d4ce555e1213847e8dbb (patch)
treed8dc05ee85473d2f797ece4651ef5efc932058bd /prism/templates/lib
parentb6390a21eb7f316341bb7bf669a15dc321aa5239 (diff)
downloadruby-87dad067e03f98df7a64d4ce555e1213847e8dbb.tar.gz
Sync with prism CallNode#name changes
* https://github.com/ruby/prism/pull/1533
Diffstat (limited to 'prism/templates/lib')
-rw-r--r--prism/templates/lib/prism/serialize.rb.erb5
1 files changed, 3 insertions, 2 deletions
diff --git a/prism/templates/lib/prism/serialize.rb.erb b/prism/templates/lib/prism/serialize.rb.erb
index 52fe811a5a..9773160e0d 100644
--- a/prism/templates/lib/prism/serialize.rb.erb
+++ b/prism/templates/lib/prism/serialize.rb.erb
@@ -144,13 +144,14 @@ module Prism
end
def load_string
- case io.getbyte
+ type = io.getbyte
+ case type
when 1
input.byteslice(load_varint, load_varint).force_encoding(encoding)
when 2
load_embedded_string
else
- raise
+ raise "Unknown serialized string type: #{type}"
end
end