Skip to content

Commit

Permalink
Ignore the case when RUBY_ENGINE is undefined
Browse files Browse the repository at this point in the history
This happened on MRI 1.8 which we no longer support
  • Loading branch information
p0deje committed Mar 6, 2019
1 parent 287dbde commit fc85909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rb/lib/selenium/webdriver/common/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def home
end

def engine
@engine ||= defined?(RUBY_ENGINE) ? RUBY_ENGINE.to_sym : :ruby
@engine ||= RUBY_ENGINE.to_sym
end

def os
Expand Down

0 comments on commit fc85909

Please sign in to comment.