From cbaf85cb32144fcf8e55969b8084aadf366ee60c Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Tue, 13 May 2025 11:22:52 -0700 Subject: [PATCH] [ruby/erb] Update the reason why we need to rescue LoadError https://github.com/ruby/erb/commit/c2d1f82817 --- lib/erb/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/erb/util.rb b/lib/erb/util.rb index 07151207bf..b538e7ccb6 100644 --- a/lib/erb/util.rb +++ b/lib/erb/util.rb @@ -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