JS: arrayToString should use toString() instead of direct join to handle nulls properly
#KT-8663 Fixed
This commit is contained in:
+2
-2
@@ -96,7 +96,7 @@
|
||||
};
|
||||
|
||||
Kotlin.arrayToString = function (a) {
|
||||
return "[" + a.join(", ") + "]";
|
||||
return "[" + a.map(Kotlin.toString).join(", ") + "]";
|
||||
};
|
||||
|
||||
Kotlin.compareTo = function (a, b) {
|
||||
@@ -618,7 +618,7 @@
|
||||
return this.array.slice(0);
|
||||
},
|
||||
toString: function () {
|
||||
return "[" + this.array.join(", ") + "]";
|
||||
return Kotlin.arrayToString(this.array);
|
||||
},
|
||||
toJSON: function () {
|
||||
return this.array;
|
||||
|
||||
Reference in New Issue
Block a user