Deprecate CharSequence.size in JS

#KT-18267 Fixed
This commit is contained in:
Ilya Gorbunov
2017-07-23 00:28:29 +03:00
parent f10ea03173
commit baa6b44567
4 changed files with 4 additions and 5 deletions
@@ -7,7 +7,7 @@ inline fun String.charCodeAt(i: Int): Int = asDynamic().charCodeAt(i)
fun String.myHashCode(): Int {
var hash = 0
for (i in 0..size - 1) {
for (i in 0..length - 1) {
hash = 31 * hash + charCodeAt(i)
}