@flock/wirespec 0.9.21 → 0.9.22
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
CHANGED
|
@@ -32,11 +32,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
32
32
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
33
33
|
}
|
|
34
34
|
});
|
|
35
|
-
if (typeof Math.log10 === 'undefined') {
|
|
36
|
-
Math.log10 = function (x) {
|
|
37
|
-
return Math.log(x) * Math.LOG10E;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
35
|
if (typeof Math.clz32 === 'undefined') {
|
|
41
36
|
Math.clz32 = function (log, LN2) {
|
|
42
37
|
return function (x) {
|
|
@@ -48,17 +43,16 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
48
43
|
};
|
|
49
44
|
}(Math.log, Math.LN2);
|
|
50
45
|
}
|
|
46
|
+
if (typeof Math.log10 === 'undefined') {
|
|
47
|
+
Math.log10 = function (x) {
|
|
48
|
+
return Math.log(x) * Math.LOG10E;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
51
|
if (typeof Math.log2 === 'undefined') {
|
|
52
52
|
Math.log2 = function (x) {
|
|
53
53
|
return Math.log(x) * Math.LOG2E;
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
57
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
58
|
-
position = position || 0;
|
|
59
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
60
|
-
}});
|
|
61
|
-
}
|
|
62
56
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
63
57
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
64
58
|
var subjectString = this.toString();
|
|
@@ -70,6 +64,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
70
64
|
return lastIndex !== -1 && lastIndex === position;
|
|
71
65
|
}});
|
|
72
66
|
}
|
|
67
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
68
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
69
|
+
position = position || 0;
|
|
70
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
71
|
+
}});
|
|
72
|
+
}
|
|
73
73
|
if (typeof Math.imul === 'undefined') {
|
|
74
74
|
Math.imul = function imul(a, b) {
|
|
75
75
|
return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
|
|
@@ -107,11 +107,11 @@ if (typeof Math.imul === 'undefined') {
|
|
|
107
107
|
setMetadataFor(Collection, 'Collection', interfaceMeta, VOID, [Iterable]);
|
|
108
108
|
setMetadataFor(AbstractCollection, 'AbstractCollection', classMeta, VOID, [Collection]);
|
|
109
109
|
setMetadataFor(MutableIterable, 'MutableIterable', interfaceMeta, VOID, [Iterable]);
|
|
110
|
-
setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, AbstractCollection, [AbstractCollection,
|
|
110
|
+
setMetadataFor(AbstractMutableCollection, 'AbstractMutableCollection', classMeta, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
|
|
111
111
|
setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
|
|
112
112
|
setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
|
|
113
113
|
setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
|
|
114
|
-
setMetadataFor(MutableList, 'MutableList', interfaceMeta, VOID, [List,
|
|
114
|
+
setMetadataFor(MutableList, 'MutableList', interfaceMeta, VOID, [List, MutableIterable, Collection]);
|
|
115
115
|
setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, MutableList]);
|
|
116
116
|
setMetadataFor(RandomAccess, 'RandomAccess', interfaceMeta);
|
|
117
117
|
setMetadataFor(SubList, 'SubList', classMeta, AbstractMutableList, [AbstractMutableList, RandomAccess]);
|
|
@@ -120,7 +120,7 @@ if (typeof Math.imul === 'undefined') {
|
|
|
120
120
|
setMetadataFor(MutableMap, 'MutableMap', interfaceMeta, VOID, [Map_0]);
|
|
121
121
|
setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, MutableMap]);
|
|
122
122
|
setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
|
|
123
|
-
setMetadataFor(MutableSet, 'MutableSet', interfaceMeta, VOID, [Set,
|
|
123
|
+
setMetadataFor(MutableSet, 'MutableSet', interfaceMeta, VOID, [Set, MutableIterable, Collection]);
|
|
124
124
|
setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, MutableSet]);
|
|
125
125
|
setMetadataFor(Companion, 'Companion', objectMeta);
|
|
126
126
|
setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, MutableList, RandomAccess], ArrayList_init_$Create$);
|