Skip to content

Commit a78e953

Browse files
committed
[GR-20709] Requiring 'rubygems' should be done with #gem_original_require
* Otherwise it can lead to infinite recursion if the home or $LOAD_PATH are not properly set. (cherry picked from commit 8d0b3e4)
1 parent 2a31e0e commit a78e953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/truffle/truffle/lazy-rubygems.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module Kernel
1919
begin
2020
gem_original_require(path)
2121
rescue LoadError
22-
require 'rubygems'
22+
gem_original_require 'rubygems'
2323
require path
2424
end
2525
end

0 commit comments

Comments
 (0)