chess4js 1.0.0-beta.4 → 1.0.0-beta.6

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.
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.clz32 === 'undefined') {
41
- Math.clz32 = function (log, LN2) {
42
- return function (x) {
43
- var asUint = x >>> 0;
44
- if (asUint === 0) {
45
- return 32;
46
- }
47
- return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
48
- };
49
- }(Math.log, Math.LN2);
50
- }
51
40
  if (typeof Math.trunc === 'undefined') {
52
41
  Math.trunc = function (x) {
53
42
  if (isNaN(x)) {
@@ -59,6 +48,17 @@ if (typeof Math.trunc === 'undefined') {
59
48
  return Math.ceil(x);
60
49
  };
61
50
  }
51
+ if (typeof Math.clz32 === 'undefined') {
52
+ Math.clz32 = function (log, LN2) {
53
+ return function (x) {
54
+ var asUint = x >>> 0;
55
+ if (asUint === 0) {
56
+ return 32;
57
+ }
58
+ return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
59
+ };
60
+ }(Math.log, Math.LN2);
61
+ }
62
62
  if (typeof String.prototype.startsWith === 'undefined') {
63
63
  Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
64
64
  position = position || 0;
@@ -7516,16 +7516,16 @@ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOI
7516
7516
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
7517
7517
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl');
7518
7518
  protoOf(AbstractMutableList).e2 = asJsReadonlyArrayView;
7519
- initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, VOID, [AbstractMutableCollection, Collection, KtList]);
7519
+ initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, VOID, [AbstractMutableCollection, KtList, Collection]);
7520
7520
  initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
7521
7521
  initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, VOID, [AbstractMap, KtMap]);
7522
- initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, VOID, [AbstractMutableCollection, Collection, KtSet]);
7522
+ initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, VOID, [AbstractMutableCollection, KtSet, Collection]);
7523
7523
  initMetadataForCompanion(Companion_1);
7524
- initMetadataForClass(ArrayList, 'ArrayList', ArrayList.h1, VOID, [AbstractMutableList, Collection, KtList]);
7524
+ initMetadataForClass(ArrayList, 'ArrayList', ArrayList.h1, VOID, [AbstractMutableList, KtList, Collection]);
7525
7525
  initMetadataForClass(HashMap, 'HashMap', HashMap.w5, VOID, [AbstractMutableMap, KtMap]);
7526
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, VOID, [Collection, KtSet, AbstractMutableSet]);
7526
+ initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, VOID, [KtSet, Collection, AbstractMutableSet]);
7527
7527
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet');
7528
- initMetadataForClass(HashSet, 'HashSet', HashSet.y6, VOID, [AbstractMutableSet, Collection, KtSet]);
7528
+ initMetadataForClass(HashSet, 'HashSet', HashSet.y6, VOID, [AbstractMutableSet, KtSet, Collection]);
7529
7529
  initMetadataForCompanion(Companion_2);
7530
7530
  initMetadataForClass(Itr, 'Itr');
7531
7531
  initMetadataForClass(KeysItr, 'KeysItr');
@@ -7535,7 +7535,7 @@ initMetadataForInterface(InternalMap, 'InternalMap');
7535
7535
  protoOf(InternalHashMap).u6 = containsAllEntries;
7536
7536
  initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap.h6, VOID, [InternalMap]);
7537
7537
  initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap.v8, VOID, [HashMap, KtMap]);
7538
- initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet.k1, VOID, [HashSet, Collection, KtSet]);
7538
+ initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet.k1, VOID, [HashSet, KtSet, Collection]);
7539
7539
  initMetadataForClass(BaseOutput, 'BaseOutput');
7540
7540
  initMetadataForClass(NodeJsOutput, 'NodeJsOutput');
7541
7541
  initMetadataForClass(BufferedOutput, 'BufferedOutput', BufferedOutput);