From 45c4ac3179caeb9913ce2231fa7c15ba37fd57d5 Mon Sep 17 00:00:00 2001 From: viralpraxis Date: Thu, 12 Jun 2025 23:30:52 +0400 Subject: [PATCH] Drop obsolete `ExecJS.runtime` attr_reader This `attr_reader` is redifined right after the `module.rb` is evaluated by `lib/execjs.rb`: https://github.com/rails/execjs/blob/master/lib/execjs.rb#L5-L7 --- lib/execjs/module.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/execjs/module.rb b/lib/execjs/module.rb index b89dc22..8cfb704 100644 --- a/lib/execjs/module.rb +++ b/lib/execjs/module.rb @@ -8,8 +8,6 @@ class ProgramError < Error; end class RuntimeUnavailable < RuntimeError; end class << self - attr_reader :runtime - def runtime=(runtime) raise RuntimeUnavailable, "#{runtime.name} is unavailable on this system" unless runtime.available? @runtime = runtime