Skip to content

Commit c2d1f82

Browse files
committed
Update the reason why we need to rescue LoadError
1 parent 1c9200a commit c2d1f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/erb/util.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if $LOAD_PATH.resolve_feature_path('erb/escape')
1414
require 'erb/escape'
1515
end
16-
rescue LoadError # resolve_feature_path raises LoadError on TruffleRuby 22.3.0
16+
rescue LoadError # Ruby 3.1+ doesn't raise LoadError on resolve_feature_path, but we may use Ruby 3.0 for BASERUBY here.
1717
end
1818
unless defined?(ERB::Escape)
1919
# ERB::Escape

0 commit comments

Comments
 (0)