@cruglobal/godtools-shared 1.2.0-PR799-SNAPSHOT.1769 → 1.2.0-PR799-SNAPSHOT.1772
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kotlin-kotlin-stdlib.js +13 -13
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +61 -75
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +4 -4
- package/kotlinx-coroutines-core.js +9 -9
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -46,6 +46,11 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
46
46
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
+
if (typeof Math.log2 === 'undefined') {
|
|
50
|
+
Math.log2 = function (x) {
|
|
51
|
+
return Math.log(x) * Math.LOG2E;
|
|
52
|
+
};
|
|
53
|
+
}
|
|
49
54
|
if (typeof Math.clz32 === 'undefined') {
|
|
50
55
|
Math.clz32 = function (log, LN2) {
|
|
51
56
|
return function (x) {
|
|
@@ -57,17 +62,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
57
62
|
};
|
|
58
63
|
}(Math.log, Math.LN2);
|
|
59
64
|
}
|
|
60
|
-
if (typeof Math.log2 === 'undefined') {
|
|
61
|
-
Math.log2 = function (x) {
|
|
62
|
-
return Math.log(x) * Math.LOG2E;
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
66
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
67
|
-
position = position || 0;
|
|
68
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
69
|
-
}});
|
|
70
|
-
}
|
|
71
65
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
72
66
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
73
67
|
var subjectString = this.toString();
|
|
@@ -79,6 +73,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
79
73
|
return lastIndex !== -1 && lastIndex === position;
|
|
80
74
|
}});
|
|
81
75
|
}
|
|
76
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
77
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
78
|
+
position = position || 0;
|
|
79
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
80
|
+
}});
|
|
81
|
+
}
|
|
82
82
|
//endregion
|
|
83
83
|
(function (factory) {
|
|
84
84
|
if (typeof define === 'function' && define.amd)
|
|
@@ -140,13 +140,13 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
140
140
|
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection]);
|
|
141
141
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
142
142
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
143
|
-
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection,
|
|
143
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, Collection, KtList]);
|
|
144
144
|
initMetadataForClass(SubList, 'SubList', VOID, AbstractMutableList);
|
|
145
145
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
146
146
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [AbstractMap, KtMap]);
|
|
147
147
|
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtSet, Collection]);
|
|
148
148
|
initMetadataForCompanion(Companion_5);
|
|
149
|
-
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList,
|
|
149
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, Collection, KtList]);
|
|
150
150
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMap]);
|
|
151
151
|
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, Collection, AbstractMutableSet]);
|
|
152
152
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, AbstractMutableCollection]);
|