Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/json/truffle_ruby/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ def allow_duplicate_key? # :nodoc:
def to_h
result = {}
instance_variables.each do |iv|
iv = iv.to_s[1..-1]
result[iv.to_sym] = self[iv]
key = iv.to_s[1..-1]
result[key.to_sym] = instance_variable_get(iv)
end

if result[:allow_duplicate_key].nil?
Expand Down
Loading