JS lib: added hasNext to Kotlin.ListIterator and fixed next.
#KT-6506 Fixed Additionally made abstract AbstractList::get and AbstractCollection::size.
This commit is contained in:
@@ -276,8 +276,11 @@
|
||||
this.size = list.size();
|
||||
this.index = 0;
|
||||
}, {
|
||||
hasNext: function () {
|
||||
return this.index < this.size;
|
||||
},
|
||||
next: function () {
|
||||
return this.list.get(this.index++);
|
||||
return this.list.get_za3lpa$(this.index++);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user