From c93be62129a215f51115826a9920d7a9d4fe0449 Mon Sep 17 00:00:00 2001 From: White-Green Date: Thu, 27 Jul 2023 17:15:17 +0900 Subject: [PATCH] autodetect runtime on require execjs/pcruntime --- lib/execjs/pcruntime.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/execjs/pcruntime.rb b/lib/execjs/pcruntime.rb index d7b8d91..fcf44d5 100644 --- a/lib/execjs/pcruntime.rb +++ b/lib/execjs/pcruntime.rb @@ -3,3 +3,5 @@ require 'execjs' require 'execjs/pcruntime/version' require 'execjs/pcruntime/runtimes' + +ExecJS.runtime = ExecJS::Runtimes.autodetect