[ruby/json] Remove some unnecessary top level constant lookups

https://github.com/ruby/json/commit/7c03ffc3e0
This commit is contained in:
Jean Boussier 2025-05-17 21:02:04 +02:00 committed by Hiroshi SHIBATA
parent e4a44b1f2a
commit 4759550967
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -34,12 +34,12 @@ module JSON
if RUBY_ENGINE == 'truffleruby'
require 'json/truffle_ruby/generator'
JSON.generator = ::JSON::TruffleRuby::Generator
JSON.generator = JSON::TruffleRuby::Generator
else
require 'json/ext/generator'
JSON.generator = Generator
end
end
JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
JSON_LOADED = true unless defined?(JSON::JSON_LOADED)
end