[ruby/json] Remove some unnecessary top level constant lookups
https://github.com/ruby/json/commit/7c03ffc3e0
This commit is contained in:
parent
e4a44b1f2a
commit
4759550967
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user