DescriptionIn JsonEncoder, test if map has only string keys, and use toEncodable if not.
Currently the encoder assumes that a map will have string keys, and will fail
in ugly ways if it doesn't. With this change, the toEncodable function used on
other un-encodable values is also used on non-String-keyed maps.
BUG= http://dartbug.com/23469
R=sgjesse@google.com
Committed: https://github.com/dart-lang/sdk/commit/25a16a39b351f6716d4197ae92f86396b6fa97d1
Patch Set 1 #
Total comments: 1
Patch Set 2 : Address comments. #Patch Set 3 : Also fix pretty-printer. #
Total comments: 1
Patch Set 4 : Address comment. #Messages
Total messages: 6 (1 generated)
|