Skip to content

Commit dbad978

Browse files
committed
Require jruby to get JRuby.runtime
1 parent a43742a commit dbad978

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/ruby/stdlib/racc/parser.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ class Parser
188188
Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
189189
begin
190190
if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == 'jruby'
191+
require 'jruby'
191192
require 'racc/cparse-jruby.jar'
192193
com.headius.racc.Cparse.new.load(JRuby.runtime, false)
193194
else

0 commit comments

Comments
 (0)