Skip to content

Commit

Permalink
Fix Hash#to_json key generation
Browse files Browse the repository at this point in the history
  • Loading branch information
meh committed Oct 21, 2013
1 parent 9724209 commit ca71f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/json.rb
Expand Up @@ -143,7 +143,7 @@ def to_json
for (var i = 0, length = keys.length; i < length; i++) {
var key = keys[i];
inspect.push(#{`key`.to_json} + ': ' + #{`map[key]`.to_json});
inspect.push(#{`key`.to_s.to_json} + ':' + #{`map[key]`.to_json});
}
return '{' + inspect.join(', ') + '}';
Expand Down

0 comments on commit ca71f5f

Please sign in to comment.