JS backend: fix KT-6112 jsonFromTuples is broken

#KT-6112 Fixed
This commit is contained in:
Michael Nedzelsky
2014-12-18 15:52:13 +03:00
parent 0abf56c9ac
commit 8074ab27ea
4 changed files with 47 additions and 15 deletions
-10
View File
@@ -955,16 +955,6 @@
return new Kotlin.ArrayIterator(array);
};
Kotlin.jsonFromTuples = function (pairArr) {
var i = pairArr.length;
var res = {};
while (i > 0) {
--i;
res[pairArr[i][0]] = pairArr[i][1];
}
return res;
};
Kotlin.jsonAddProperties = function (obj1, obj2) {
for (var p in obj2) {
if (obj2.hasOwnProperty(p)) {