Move Kernel#with_yjit to Module#with_yjit

This commit is contained in:
Nobuyoshi Nakada 2024-11-27 12:17:15 +09:00 committed by Takashi Kokubun
parent 14ce2443db
commit 3354324c6e
Notes: git 2024-11-27 17:04:33 +00:00
2 changed files with 3 additions and 1 deletions

View File

@ -290,7 +290,9 @@ module Kernel
Primitive.rb_f_integer(arg, base, exception)
end
end
end
class Module
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
# This method is removed in yjit_hook.rb.
private def with_yjit(&block) # :nodoc:

View File

@ -4,6 +4,6 @@ if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
end
# Remove the helper defined in kernel.rb
module Kernel
class Module
undef :with_yjit
end