Skip to content

Commit cf4ce08

Browse files
authored
Merge pull request #7583 from haberman/sync-stage
Integrate from Piper for C++, Java, and Python
2 parents f20a039 + 9097b5d commit cf4ce08

1 file changed

Lines changed: 3 additions & 3 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.

0 commit comments

Comments
 (0)