@cruglobal/godtools-shared 0.9.3-SNAPSHOT.1443 → 0.9.3-SNAPSHOT.1446

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.
@@ -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.log2 === 'undefined') {
36
- Math.log2 = function (x) {
37
- return Math.log(x) * Math.LOG2E;
38
- };
39
- }
40
35
  if (typeof Math.clz32 === 'undefined') {
41
36
  Math.clz32 = function (log, LN2) {
42
37
  return function (x) {
@@ -48,6 +43,17 @@ if (typeof Math.clz32 === 'undefined') {
48
43
  };
49
44
  }(Math.log, Math.LN2);
50
45
  }
46
+ if (typeof Math.log2 === 'undefined') {
47
+ Math.log2 = function (x) {
48
+ return Math.log(x) * Math.LOG2E;
49
+ };
50
+ }
51
+ if (typeof String.prototype.startsWith === 'undefined') {
52
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
53
+ position = position || 0;
54
+ return this.lastIndexOf(searchString, position) === position;
55
+ }});
56
+ }
51
57
  if (typeof String.prototype.endsWith === 'undefined') {
52
58
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
53
59
  var subjectString = this.toString();
@@ -59,12 +65,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
59
65
  return lastIndex !== -1 && lastIndex === position;
60
66
  }});
61
67
  }
62
- if (typeof String.prototype.startsWith === 'undefined') {
63
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
64
- position = position || 0;
65
- return this.lastIndexOf(searchString, position) === position;
66
- }});
67
- }
68
68
  if (typeof Math.imul === 'undefined') {
69
69
  Math.imul = function imul(a, b) {
70
70
  return (a & 4.29490176E9) * (b & 65535) + (a & 65535) * (b | 0) | 0;
@@ -100,24 +100,24 @@ if (typeof Math.imul === 'undefined') {
100
100
  setMetadataFor(IteratorImpl, 'IteratorImpl', classMeta);
101
101
  setMetadataFor(ListIteratorImpl, 'ListIteratorImpl', classMeta, IteratorImpl);
102
102
  setMetadataFor(List, 'List', interfaceMeta, VOID, [Collection]);
103
- setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, List, Collection]);
103
+ setMetadataFor(AbstractMutableList, 'AbstractMutableList', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, List]);
104
104
  setMetadataFor(Map_0, 'Map', interfaceMeta);
105
105
  setMetadataFor(AbstractMap, 'AbstractMap', classMeta, VOID, [Map_0]);
106
106
  setMetadataFor(AbstractMutableMap, 'AbstractMutableMap', classMeta, AbstractMap, [AbstractMap, Map_0]);
107
107
  setMetadataFor(Set, 'Set', interfaceMeta, VOID, [Collection]);
108
- setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Set, Collection]);
108
+ setMetadataFor(AbstractMutableSet, 'AbstractMutableSet', classMeta, AbstractMutableCollection, [AbstractMutableCollection, Collection, Set]);
109
109
  setMetadataFor(Companion, 'Companion', objectMeta);
110
- setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, List, Collection], ArrayList_init_$Create$);
110
+ setMetadataFor(ArrayList, 'ArrayList', classMeta, AbstractMutableList, [AbstractMutableList, Collection, List], ArrayList_init_$Create$);
111
111
  setMetadataFor(HashMap, 'HashMap', classMeta, AbstractMutableMap, [AbstractMutableMap, Map_0], HashMap_init_$Create$);
112
- setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
112
+ setMetadataFor(HashMapKeys, 'HashMapKeys', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
113
113
  setMetadataFor(HashMapValues, 'HashMapValues', classMeta, AbstractMutableCollection, [Collection, AbstractMutableCollection]);
114
- setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Set, Collection, AbstractMutableSet]);
114
+ setMetadataFor(HashMapEntrySetBase, 'HashMapEntrySetBase', classMeta, AbstractMutableSet, [Collection, Set, AbstractMutableSet]);
115
115
  setMetadataFor(HashMapEntrySet, 'HashMapEntrySet', classMeta, HashMapEntrySetBase);
116
116
  setMetadataFor(HashMapKeysDefault$iterator$1, VOID, classMeta);
117
117
  setMetadataFor(HashMapKeysDefault, 'HashMapKeysDefault', classMeta, AbstractMutableSet);
118
118
  setMetadataFor(HashMapValuesDefault$iterator$1, VOID, classMeta);
119
119
  setMetadataFor(HashMapValuesDefault, 'HashMapValuesDefault', classMeta, AbstractMutableCollection);
120
- setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Set, Collection], HashSet_init_$Create$);
120
+ setMetadataFor(HashSet, 'HashSet', classMeta, AbstractMutableSet, [AbstractMutableSet, Collection, Set], HashSet_init_$Create$);
121
121
  setMetadataFor(Companion_0, 'Companion', objectMeta);
122
122
  setMetadataFor(Itr, 'Itr', classMeta);
123
123
  setMetadataFor(KeysItr, 'KeysItr', classMeta, Itr);
@@ -166,7 +166,7 @@ if (typeof Math.imul === 'undefined') {
166
166
  setMetadataFor(EmptyHolder, 'EmptyHolder', objectMeta);
167
167
  setMetadataFor(LinkedHashMap, 'LinkedHashMap', classMeta, HashMap, [HashMap, Map_0], LinkedHashMap_init_$Create$);
168
168
  setMetadataFor(EmptyHolder_0, 'EmptyHolder', objectMeta);
169
- setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Set, Collection], LinkedHashSet_init_$Create$);
169
+ setMetadataFor(LinkedHashSet, 'LinkedHashSet', classMeta, HashSet, [HashSet, Collection, Set], LinkedHashSet_init_$Create$);
170
170
  setMetadataFor(BaseOutput, 'BaseOutput', classMeta);
171
171
  setMetadataFor(NodeJsOutput, 'NodeJsOutput', classMeta, BaseOutput);
172
172
  setMetadataFor(BufferedOutput, 'BufferedOutput', classMeta, BaseOutput, VOID, BufferedOutput);
@@ -7149,12 +7149,12 @@ if (typeof Math.imul === 'undefined') {
7149
7149
  return _this__u8e3s4;
7150
7150
  }
7151
7151
  }
7152
- function get_lastIndex_1(_this__u8e3s4) {
7153
- return _this__u8e3s4.l() - 1 | 0;
7154
- }
7155
7152
  function mutableListOf(elements) {
7156
7153
  return elements.length === 0 ? ArrayList_init_$Create$() : ArrayList_init_$Create$_1(new ArrayAsCollection(elements, true));
7157
7154
  }
7155
+ function get_lastIndex_1(_this__u8e3s4) {
7156
+ return _this__u8e3s4.l() - 1 | 0;
7157
+ }
7158
7158
  function EmptyList() {
7159
7159
  EmptyList_instance = this;
7160
7160
  this.td_1 = new Long(-1478467534, -1720727600);