summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-22 17:41:47 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-12-22 17:41:47 +0900
commit0c446fa9b7c57647b11085304a532da70a64e231 (patch)
treefb547dc3e0cdc97501150b9efebbbaf14163afef
parent951c7d108af91612b81790e7b31e831998c91b92 (diff)
downloadjson-0c446fa9b7c57647b11085304a532da70a64e231.tar.gz
Workaround for JRuby
-rw-r--r--lib/json/common.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/json/common.rb b/lib/json/common.rb
index d58c7ea..3e390f2 100644
--- a/lib/json/common.rb
+++ b/lib/json/common.rb
@@ -71,6 +71,7 @@ module JSON
end
self.state = generator::State
const_set :State, self.state
+ const_set :SAFE_STATE_PROTOTYPE, State.new # for JRuby
ensure
$VERBOSE = old
end