Skip to content

Commit 0c446fa

Browse files
committed
Workaround for JRuby
1 parent 951c7d1 commit 0c446fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/json/common.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def generator=(generator) # :nodoc:
7171
end
7272
self.state = generator::State
7373
const_set :State, self.state
74+
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
7475
ensure
7576
$VERBOSE = old
7677
end

0 commit comments

Comments
 (0)