JS: support enums in flat JS structure

This commit is contained in:
Alexey Andreev
2016-10-19 13:15:59 +03:00
parent 54925e7f83
commit 06476402a2
7 changed files with 198 additions and 33 deletions
+4 -2
View File
@@ -143,11 +143,11 @@
return type === "string" ||
type === "boolean" ||
Kotlin.isNumber(value) ||
Kotlin.isType(value, Kotlin.Comparable);
Kotlin.isType(value, Kotlin.kotlin.Comparable);
};
Kotlin.isCharSequence = function (value) {
return typeof value === "string" || Kotlin.isType(value, CharSequence);
return typeof value === "string" || Kotlin.isType(value, Kotlin.kotlin.CharSequence);
};
Kotlin.charInc = function (value) {
@@ -497,5 +497,7 @@
}
return obj1;
};
Kotlin.identityHashCode = getObjectHashCode;
})(Kotlin);