KT-3008 Add support of module kind to Ant task. Repair Ant JS tests

This commit is contained in:
Alexey Andreev
2016-04-25 15:19:49 +03:00
parent a9ed789727
commit 713a7efcdf
9 changed files with 89 additions and 3 deletions
@@ -1,4 +1,4 @@
(function (Kotlin) {
this['jslib-example'] = function (Kotlin) {
'use strict';
var _ = Kotlin.defineRootPackage(null, /** @lends _ */ {
library: Kotlin.definePackage(null, /** @lends _.library */ {
@@ -27,11 +27,12 @@
return result;
},
equals_za3rmp$: function (other) {
return this === other || (other !== null && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value)));
return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value))));
}
})
})
})
});
Kotlin.defineModule('jslib-example', _);
}(Kotlin));
return _;
}(kotlin);