diff options
author | Benoit Daloze <eregontp@gmail.com> | 2023-10-01 12:34:55 +0200 |
---|---|---|
committer | Kevin Newton <kddnewton@gmail.com> | 2023-10-02 09:18:56 -0400 |
commit | 87dad067e03f98df7a64d4ce555e1213847e8dbb (patch) | |
tree | d8dc05ee85473d2f797ece4651ef5efc932058bd /prism/templates/lib | |
parent | b6390a21eb7f316341bb7bf669a15dc321aa5239 (diff) | |
download | ruby-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.erb | 5 |
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 |