aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/message.js11
-rw-r--r--js/package.json2
2 files changed, 12 insertions, 1 deletions
diff --git a/js/message.js b/js/message.js
index 04d43339..86d18295 100644
--- a/js/message.js
+++ b/js/message.js
@@ -923,6 +923,17 @@ jspb.Message.setProto3IntField = function(msg, fieldNumber, value) {
/**
+ * Sets the value of a non-extension integer, handled as string, field of a proto3
+ * @param {!jspb.Message} msg A jspb proto.
+ * @param {number} fieldNumber The field number.
+ * @param {number} value New value
+ * @protected
+ */
+jspb.Message.setProto3StringIntField = function(msg, fieldNumber, value) {
+ jspb.Message.setFieldIgnoringDefault_(msg, fieldNumber, value, '0');
+};
+
+/**
* Sets the value of a non-extension floating point field of a proto3
* @param {!jspb.Message} msg A jspb proto.
* @param {number} fieldNumber The field number.
diff --git a/js/package.json b/js/package.json
index 3c1c2a42..39d99f93 100644
--- a/js/package.json
+++ b/js/package.json
@@ -1,6 +1,6 @@
{
"name": "google-protobuf",
- "version": "3.5.1",
+ "version": "3.5.2",
"description": "Protocol Buffers for JavaScript",
"main": "google-protobuf.js",
"files": [