Get rid of SAFE_STATE_PROTOTYPE
It was only used by JRuby and TruffleRuby to call `SAFE_STATE_PROTOTYPE.dup` instead of `State.new` which isn't an worthy optimization.
This commit is contained in:
parent
4dde7101c7
commit
9f17a0c7cb
Notes:
git
2025-03-27 04:54:28 +00:00
@ -70,7 +70,6 @@ module JSON
|
|||||||
end
|
end
|
||||||
self.state = generator::State
|
self.state = generator::State
|
||||||
const_set :State, self.state
|
const_set :State, self.state
|
||||||
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
|
|
||||||
ensure
|
ensure
|
||||||
$VERBOSE = old
|
$VERBOSE = old
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user