Skip to content

Commit 9097b5d

Browse files
committed
Sync from Piper @314226556
PROTOBUF_SYNC_PIPER
2 parents fc782c8 + f20a039 commit 9097b5d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

message.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ jspb.Message.EMPTY_LIST_SENTINEL_ = goog.DEBUG && Object.freeze ?
417417
*/
418418
jspb.Message.isArray_ = function(o) {
419419
return jspb.Message.ASSUME_LOCAL_ARRAYS ? o instanceof Array :
420-
goog.isArray(o);
420+
Array.isArray(o);
421421
};
422422

423423
/**
@@ -1433,7 +1433,7 @@ jspb.Message.prototype.syncMapFields_ = function() {
14331433
if (this.wrappers_) {
14341434
for (var fieldNumber in this.wrappers_) {
14351435
var val = this.wrappers_[fieldNumber];
1436-
if (goog.isArray(val)) {
1436+
if (Array.isArray(val)) {
14371437
for (var i = 0; i < val.length; i++) {
14381438
if (val[i]) {
14391439
val[i].toArray();
@@ -1823,7 +1823,7 @@ jspb.Message.copyInto = function(fromMessage, toMessage) {
18231823
*/
18241824
jspb.Message.clone_ = function(obj) {
18251825
var o;
1826-
if (goog.isArray(obj)) {
1826+
if (Array.isArray(obj)) {
18271827
// Allocate array of correct size.
18281828
var clonedArray = new Array(obj.length);
18291829
// Use array iteration where possible because it is faster than for-in.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "google-protobuf",
3-
"version": "3.11.4",
3+
"version": "3.12.2",
44
"description": "Protocol Buffers for JavaScript",
55
"main": "google-protobuf.js",
66
"files": [

0 commit comments

Comments
 (0)