Unverified Commit a450e13a authored by Paul Yang's avatar Paul Yang Committed by GitHub

Revert "Fixed JS parsing of default map values (#6394)" (#6468)

This reverts commit dcc8ffd9.
parent 0c4b607e
......@@ -465,15 +465,11 @@ jspb.Map.prototype.serializeBinary = function(
* entries with unset keys is required for maps to be backwards compatible
* with the repeated message representation described here: goo.gl/zuoLAC
*
* @param {V=} opt_defaultValue
* The default value for the type of map values.
*
*/
jspb.Map.deserializeBinary = function(map, reader, keyReaderFn, valueReaderFn,
opt_valueReaderCallback, opt_defaultKey,
opt_defaultValue) {
opt_valueReaderCallback, opt_defaultKey) {
var key = opt_defaultKey;
var value = opt_defaultValue;
var value = undefined;
while (reader.nextField()) {
if (reader.isEndGroup()) {
......
......@@ -3142,7 +3142,6 @@ void Generator::GenerateClassDeserializeBinaryField(
printer->Print(", null");
}
printer->Print(", $defaultKey$", "defaultKey", JSFieldDefault(key_field));
printer->Print(", $defaultValue$", "defaultValue", JSFieldDefault(value_field));
printer->Print(");\n");
printer->Print(" });\n");
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment