Move Kernel#with_yjit
to Module#with_yjit
This commit is contained in:
parent
14ce2443db
commit
3354324c6e
Notes:
git
2024-11-27 17:04:33 +00:00
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user