[ruby/erb] Update the reason why we need to rescue LoadError

https://github.com/ruby/erb/commit/c2d1f82817
This commit is contained in:
Takashi Kokubun 2025-05-13 11:22:52 -07:00 committed by git
parent c71f9b8aee
commit cbaf85cb32

View File

@ -13,7 +13,7 @@ begin
if $LOAD_PATH.resolve_feature_path('erb/escape')
require 'erb/escape'
end
rescue LoadError # resolve_feature_path raises LoadError on TruffleRuby 22.3.0
rescue LoadError # Ruby 3.1+ doesn't raise LoadError on resolve_feature_path, but we may use Ruby 3.0 for BASERUBY here.
end
unless defined?(ERB::Escape)
# ERB::Escape