1
0
Fork 0
mirror of https://github.com/rails/execjs synced 2023-03-27 23:21:20 -04:00

Eager detect runtime

This commit is contained in:
Joshua Peek 2011-05-03 09:27:03 -07:00
parent ba34d8008b
commit 66abd81aa2

View file

@ -39,4 +39,7 @@ module ExecJS
def self.windows? def self.windows?
@windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/ @windows ||= RbConfig::CONFIG["host_os"] =~ /mswin|mingw/
end end
# Eager detect runtime
self.runtime
end end