Skip to content

Commit

Permalink
prevent runtime autodetect on require
Browse files Browse the repository at this point in the history
  • Loading branch information
SebouChu committed Oct 15, 2024
1 parent ea4731d commit 3ecf768
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/execjs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
require "execjs/runtimes"

module ExecJS
self.runtime ||= Runtimes.autodetect
def self.runtime
@runtime ||= Runtimes.autodetect
end
end

0 comments on commit 3ecf768

Please sign in to comment.