Skip to content

Commit 5910bef

Browse files
committed
Added backword compatible for < json-2.5
1 parent ea58503 commit 5910bef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/json/common.rb

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ def generator=(generator) # :nodoc:
7272
self.state = generator::State
7373
const_set :State, self.state
7474
const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
75+
const_set :FAST_STATE_PROTOTYPE, create_fast_state
76+
const_set :PRETTY_STATE_PROTOTYPE, create_pretty_state
7577
ensure
7678
$VERBOSE = old
7779
end

0 commit comments

Comments
 (0)