JS backend: - test both versions of Set(Complex and Primitive)

- added size in PrimitiveSet
 - fixed contains in PrimitiveSet

 #KT-4796 fixed
This commit is contained in:
Zalim Bashorov
2014-04-02 17:29:24 +04:00
parent 6c1ed450a2
commit 336ff43b26
2 changed files with 24 additions and 5 deletions
+4 -1
View File
@@ -593,7 +593,10 @@ Kotlin.PrimitiveHashSet = Kotlin.createClassNow(Kotlin.AbstractCollection,
},
/** @lends {Kotlin.PrimitiveHashSet.prototype} */
{
contains_s9cetl$: function (key) {
size: function () {
return this.$size;
},
contains_za3rmp$: function (key) {
return this.map[key] === true;
},
iterator: function () {