mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 13:34:17 +02:00
Remove version templating in YARP
This commit is contained in:
parent
aea7e91828
commit
ca9a44795b
Notes:
git
2023-08-25 22:21:12 +00:00
12 changed files with 18 additions and 146 deletions
|
@ -172,10 +172,8 @@ module YARP
|
|||
# the YARP module.
|
||||
private_constant :LibRubyParser
|
||||
|
||||
library_version = LibRubyParser.yp_version.read_string
|
||||
if library_version != YARP::VERSION
|
||||
raise "The YARP library version (#{library_version}) does not match the expected version (#{YARP::VERSION})"
|
||||
end
|
||||
# The version constant is set by reading the result of calling yp_version.
|
||||
VERSION = LibRubyParser.yp_version.read_string
|
||||
|
||||
def self.dump_internal(source, source_size, filepath)
|
||||
LibRubyParser::YPBuffer.with do |buffer|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue