Skip to content

Commit

Permalink
Workaround for JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed Dec 22, 2020
1 parent 951c7d1 commit 0c446fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/json/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def generator=(generator) # :nodoc:
end
self.state = generator::State
const_set :State, self.state
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
ensure
$VERBOSE = old
end
Expand Down

0 comments on commit 0c446fa

Please sign in to comment.