Skip to content

Commit 3ecf768

Browse files
committed
prevent runtime autodetect on require
1 parent ea4731d commit 3ecf768

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/execjs.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
require "execjs/runtimes"
33

44
module ExecJS
5-
self.runtime ||= Runtimes.autodetect
5+
def self.runtime
6+
@runtime ||= Runtimes.autodetect
7+
end
68
end

0 commit comments

Comments
 (0)