Skip to content

Commit

Permalink
Merge pull request #459 from flori/backword-compatible
Browse files Browse the repository at this point in the history
Added backword compatible for < json-2.5
  • Loading branch information
hsbt authored Dec 22, 2020
2 parents ea58503 + 5910bef commit 91f5fdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ def generator=(generator) # :nodoc:
self.state = generator::State
const_set :State, self.state
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
const_set :FAST_STATE_PROTOTYPE, create_fast_state
const_set :PRETTY_STATE_PROTOTYPE, create_pretty_state
ensure
$VERBOSE = old
end
Expand Down

0 comments on commit 91f5fdf

Please sign in to comment.