@fable-org/fable-library-js 1.10.0 → 2.0.0-beta.1

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/Array.js CHANGED
@@ -183,7 +183,7 @@ export function where(predicate, array) {
183
183
  }
184
184
  export function indexOf(array, item_1, start, count, eq) {
185
185
  const start_1 = defaultArg(start, 0) | 0;
186
- const end$0027 = defaultArg(map_1((c) => (start_1 + c), count), array.length) | 0;
186
+ const end$0027 = defaultArg(map_1((c) => ((start_1 + c) | 0), count), array.length) | 0;
187
187
  const loop = (i_mut) => {
188
188
  loop: while (true) {
189
189
  const i = i_mut;
@@ -339,11 +339,11 @@ export function addRangeInPlace(range, array) {
339
339
  }
340
340
  }
341
341
  export function insertRangeInPlace(index, range, array) {
342
- let index_1;
343
342
  let i = index;
344
343
  const enumerator = getEnumerator(range);
345
344
  try {
346
345
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
346
+ let index_1;
347
347
  const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
348
348
  (index_1 = (i | 0), array.splice(index_1, 0, x));
349
349
  i = ((i + 1) | 0);
@@ -646,29 +646,29 @@ export function setSlice(target, lower, upper, source) {
646
646
  }
647
647
  }
648
648
  export function sortInPlaceBy(projection, xs, comparer) {
649
- xs.sort((x, y) => comparer.Compare(projection(x), projection(y)));
649
+ xs.sort((x, y) => (comparer.Compare(projection(x), projection(y)) | 0));
650
650
  }
651
651
  export function sortInPlace(xs, comparer) {
652
- xs.sort((x, y) => comparer.Compare(x, y));
652
+ xs.sort((x, y) => (comparer.Compare(x, y) | 0));
653
653
  }
654
654
  export function sort(xs, comparer) {
655
655
  const xs_1 = xs.slice();
656
- xs_1.sort((x, y) => comparer.Compare(x, y));
656
+ xs_1.sort((x, y) => (comparer.Compare(x, y) | 0));
657
657
  return xs_1;
658
658
  }
659
659
  export function sortBy(projection, xs, comparer) {
660
660
  const xs_1 = xs.slice();
661
- xs_1.sort((x, y) => comparer.Compare(projection(x), projection(y)));
661
+ xs_1.sort((x, y) => (comparer.Compare(projection(x), projection(y)) | 0));
662
662
  return xs_1;
663
663
  }
664
664
  export function sortDescending(xs, comparer) {
665
665
  const xs_1 = xs.slice();
666
- xs_1.sort((x, y) => (comparer.Compare(x, y) * -1));
666
+ xs_1.sort((x, y) => ((comparer.Compare(x, y) * -1) | 0));
667
667
  return xs_1;
668
668
  }
669
669
  export function sortByDescending(projection, xs, comparer) {
670
670
  const xs_1 = xs.slice();
671
- xs_1.sort((x, y) => (comparer.Compare(projection(x), projection(y)) * -1));
671
+ xs_1.sort((x, y) => ((comparer.Compare(projection(x), projection(y)) * -1) | 0));
672
672
  return xs_1;
673
673
  }
674
674
  export function sortWith(comparer, xs) {
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## Unreleased
9
9
 
10
+ ## 2.0.0-beta.1 - 2025-02-16
11
+
12
+ * Compiled with Fable 5.0.0-alpha.10
13
+
10
14
  ## 1.10.0 - 2025-01-23
11
15
 
12
16
  ### Added
@@ -5,23 +5,23 @@ export function HashIdentity_FromFunctions(hash, eq) {
5
5
  return eq(x, y);
6
6
  },
7
7
  GetHashCode(x_1) {
8
- return hash(x_1);
8
+ return hash(x_1) | 0;
9
9
  },
10
10
  };
11
11
  }
12
12
  export function HashIdentity_Structural() {
13
- return HashIdentity_FromFunctions(structuralHash, equals);
13
+ return HashIdentity_FromFunctions((obj) => (structuralHash(obj) | 0), equals);
14
14
  }
15
15
  export function HashIdentity_Reference() {
16
- return HashIdentity_FromFunctions(physicalHash, (e, e_1) => (e === e_1));
16
+ return HashIdentity_FromFunctions((obj) => (physicalHash(obj) | 0), (e, e_1) => (e === e_1));
17
17
  }
18
18
  export function ComparisonIdentity_FromFunction(comparer) {
19
19
  return {
20
20
  Compare(x, y) {
21
- return comparer(x, y);
21
+ return comparer(x, y) | 0;
22
22
  },
23
23
  };
24
24
  }
25
25
  export function ComparisonIdentity_Structural() {
26
- return ComparisonIdentity_FromFunction(compare);
26
+ return ComparisonIdentity_FromFunction((e, e_1) => (compare(e, e_1) | 0));
27
27
  }
package/FSharp.Core.js CHANGED
@@ -8,7 +8,7 @@ export const LanguagePrimitives_GenericEqualityComparer = {
8
8
  return equals(x, y);
9
9
  },
10
10
  "System.Collections.IEqualityComparer.GetHashCode4E60E31B"(x_1) {
11
- return structuralHash(x_1);
11
+ return structuralHash(x_1) | 0;
12
12
  },
13
13
  };
14
14
  export const LanguagePrimitives_GenericEqualityERComparer = {
@@ -16,7 +16,7 @@ export const LanguagePrimitives_GenericEqualityERComparer = {
16
16
  return equals(x, y);
17
17
  },
18
18
  "System.Collections.IEqualityComparer.GetHashCode4E60E31B"(x_1) {
19
- return structuralHash(x_1);
19
+ return structuralHash(x_1) | 0;
20
20
  },
21
21
  };
22
22
  export function LanguagePrimitives_FastGenericComparer() {
package/List.js CHANGED
@@ -261,7 +261,7 @@ export function isEmpty(xs) {
261
261
  return FSharpList__get_IsEmpty(xs);
262
262
  }
263
263
  export function length(xs) {
264
- return FSharpList__get_Length(xs);
264
+ return FSharpList__get_Length(xs) | 0;
265
265
  }
266
266
  export function head(xs) {
267
267
  return FSharpList__get_Head(xs);
@@ -405,9 +405,9 @@ export function foldBack2(folder, xs, ys, state) {
405
405
  }
406
406
  export function unfold(gen, state) {
407
407
  const loop = (acc_mut, node_mut) => {
408
- let t;
409
408
  loop: while (true) {
410
409
  const acc = acc_mut, node = node_mut;
410
+ let t;
411
411
  const matchValue = gen(acc);
412
412
  if (matchValue != null) {
413
413
  acc_mut = value_1(matchValue)[1];
@@ -462,7 +462,6 @@ export function ofArray(xs) {
462
462
  return ofArrayWithTail(xs, FSharpList_get_Empty());
463
463
  }
464
464
  export function ofSeq(xs) {
465
- let xs_3, t;
466
465
  if (isArrayLike(xs)) {
467
466
  return ofArray(xs);
468
467
  }
@@ -475,6 +474,7 @@ export function ofSeq(xs) {
475
474
  const enumerator = getEnumerator(xs);
476
475
  try {
477
476
  while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
477
+ let xs_3, t;
478
478
  const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
479
479
  node = ((xs_3 = node, (t = (new FSharpList(x, undefined)), (xs_3.tail = t, t))));
480
480
  }
@@ -522,7 +522,6 @@ export function concat(lists) {
522
522
  return FSharpList__get_Tail(root);
523
523
  }
524
524
  export function scan(folder, state, xs) {
525
- let xs_4, t_2;
526
525
  const root = FSharpList_get_Empty();
527
526
  let node;
528
527
  const t = new FSharpList(state, undefined);
@@ -531,6 +530,7 @@ export function scan(folder, state, xs) {
531
530
  let acc = state;
532
531
  let xs_3 = xs;
533
532
  while (!FSharpList__get_IsEmpty(xs_3)) {
533
+ let xs_4, t_2;
534
534
  acc = folder(acc, FSharpList__get_Head(xs_3));
535
535
  node = ((xs_4 = node, (t_2 = (new FSharpList(acc, undefined)), (xs_4.tail = t_2, t_2))));
536
536
  xs_3 = FSharpList__get_Tail(xs_3);
@@ -547,13 +547,13 @@ export function append(xs, ys) {
547
547
  return fold((acc, x) => FSharpList_Cons_305B8EAC(x, acc), ys, reverse(xs));
548
548
  }
549
549
  export function collect(mapping, xs) {
550
- let xs_1, t;
551
550
  const root = FSharpList_get_Empty();
552
551
  let node = root;
553
552
  let ys = xs;
554
553
  while (!FSharpList__get_IsEmpty(ys)) {
555
554
  let zs = mapping(FSharpList__get_Head(ys));
556
555
  while (!FSharpList__get_IsEmpty(zs)) {
556
+ let xs_1, t;
557
557
  node = ((xs_1 = node, (t = (new FSharpList(FSharpList__get_Head(zs), undefined)), (xs_1.tail = t, t))));
558
558
  zs = FSharpList__get_Tail(zs);
559
559
  }
@@ -602,9 +602,9 @@ export function map2(mapping, xs, ys) {
602
602
  }
603
603
  export function mapIndexed2(mapping, xs, ys) {
604
604
  const loop = (i_mut, acc_mut, xs_1_mut, ys_1_mut) => {
605
- let t;
606
605
  loop: while (true) {
607
606
  const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut;
607
+ let t;
608
608
  if (FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) {
609
609
  return acc;
610
610
  }
@@ -626,9 +626,9 @@ export function mapIndexed2(mapping, xs, ys) {
626
626
  }
627
627
  export function map3(mapping, xs, ys, zs) {
628
628
  const loop = (acc_mut, xs_1_mut, ys_1_mut, zs_1_mut) => {
629
- let t;
630
629
  loop: while (true) {
631
630
  const acc = acc_mut, xs_1 = xs_1_mut, ys_1 = ys_1_mut, zs_1 = zs_1_mut;
631
+ let t;
632
632
  if ((FSharpList__get_IsEmpty(xs_1) ? true : FSharpList__get_IsEmpty(ys_1)) ? true : FSharpList__get_IsEmpty(zs_1)) {
633
633
  return acc;
634
634
  }
@@ -841,10 +841,10 @@ export function contains(value, xs, eq) {
841
841
  return tryFindIndex((v) => eq.Equals(value, v), xs) != null;
842
842
  }
843
843
  export function initialize(n, f) {
844
- let xs, t;
845
844
  const root = FSharpList_get_Empty();
846
845
  let node = root;
847
846
  for (let i = 0; i <= (n - 1); i++) {
847
+ let xs, t;
848
848
  node = ((xs = node, (t = (new FSharpList(f(i), undefined)), (xs.tail = t, t))));
849
849
  }
850
850
  const xs_2 = node;
@@ -937,16 +937,16 @@ export function sortWith(comparer, xs) {
937
937
  return ofArray(arr);
938
938
  }
939
939
  export function sort(xs, comparer) {
940
- return sortWith((x, y) => comparer.Compare(x, y), xs);
940
+ return sortWith((x, y) => (comparer.Compare(x, y) | 0), xs);
941
941
  }
942
942
  export function sortBy(projection, xs, comparer) {
943
- return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
943
+ return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) | 0), xs);
944
944
  }
945
945
  export function sortDescending(xs, comparer) {
946
- return sortWith((x, y) => (comparer.Compare(x, y) * -1), xs);
946
+ return sortWith((x, y) => ((comparer.Compare(x, y) * -1) | 0), xs);
947
947
  }
948
948
  export function sortByDescending(projection, xs, comparer) {
949
- return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) * -1), xs);
949
+ return sortWith((x, y) => ((comparer.Compare(projection(x), projection(y)) * -1) | 0), xs);
950
950
  }
951
951
  export function sum(xs, adder) {
952
952
  return fold((acc, x) => adder.Add(acc, x), adder.GetZero(), xs);
@@ -1041,9 +1041,9 @@ export function take(count, xs) {
1041
1041
  throw new Error((SR_inputMustBeNonNegative + "\\nParameter name: ") + "count");
1042
1042
  }
1043
1043
  const loop = (i_mut, acc_mut, xs_1_mut) => {
1044
- let t;
1045
1044
  loop: while (true) {
1046
1045
  const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1046
+ let t;
1047
1047
  if (i <= 0) {
1048
1048
  return acc;
1049
1049
  }
@@ -1067,9 +1067,9 @@ export function take(count, xs) {
1067
1067
  }
1068
1068
  export function takeWhile(predicate, xs) {
1069
1069
  const loop = (acc_mut, xs_1_mut) => {
1070
- let t;
1071
1070
  loop: while (true) {
1072
1071
  const acc = acc_mut, xs_1 = xs_1_mut;
1072
+ let t;
1073
1073
  if (FSharpList__get_IsEmpty(xs_1)) {
1074
1074
  return acc;
1075
1075
  }
@@ -1092,9 +1092,9 @@ export function takeWhile(predicate, xs) {
1092
1092
  }
1093
1093
  export function truncate(count, xs) {
1094
1094
  const loop = (i_mut, acc_mut, xs_1_mut) => {
1095
- let t;
1096
1095
  loop: while (true) {
1097
1096
  const i = i_mut, acc = acc_mut, xs_1 = xs_1_mut;
1097
+ let t;
1098
1098
  if (i <= 0) {
1099
1099
  return acc;
1100
1100
  }
package/Map.js CHANGED
@@ -45,7 +45,7 @@ export function MapTreeNode$2__get_Right(_) {
45
45
  return _.right;
46
46
  }
47
47
  export function MapTreeNode$2__get_Height(_) {
48
- return _.h;
48
+ return _.h | 0;
49
49
  }
50
50
  export function MapTreeModule_empty() {
51
51
  return undefined;
@@ -72,7 +72,7 @@ export function MapTreeModule_sizeAux(acc_mut, m_mut) {
72
72
  }
73
73
  }
74
74
  export function MapTreeModule_size(x) {
75
- return MapTreeModule_sizeAux(0, x);
75
+ return MapTreeModule_sizeAux(0, x) | 0;
76
76
  }
77
77
  export function MapTreeModule_mk(l, k, v, r) {
78
78
  let mn, mn_1;
@@ -1223,7 +1223,7 @@ export function FSharpMap__Partition(m, predicate) {
1223
1223
  return [FSharpMap_$ctor(m.comparer, patternInput[0]), FSharpMap_$ctor(m.comparer, patternInput[1])];
1224
1224
  }
1225
1225
  export function FSharpMap__get_Count(m) {
1226
- return MapTreeModule_size(m.tree);
1226
+ return MapTreeModule_size(m.tree) | 0;
1227
1227
  }
1228
1228
  export function FSharpMap__ContainsKey(m, key) {
1229
1229
  return MapTreeModule_mem(m.comparer, key, m.tree);
@@ -1264,7 +1264,7 @@ export function FSharpMap__ToArray(m) {
1264
1264
  return MapTreeModule_toArray(m.tree);
1265
1265
  }
1266
1266
  export function FSharpMap__ComputeHashCode(this$) {
1267
- const combineHash = (x, y) => (((x << 1) + y) + 631);
1267
+ const combineHash = (x, y) => ((((x << 1) + y) + 631) | 0);
1268
1268
  let res = 0;
1269
1269
  const enumerator = getEnumerator(this$);
1270
1270
  try {
@@ -1392,5 +1392,5 @@ export function empty(comparer) {
1392
1392
  return FSharpMap_Empty(comparer);
1393
1393
  }
1394
1394
  export function count(table) {
1395
- return FSharpMap__get_Count(table);
1395
+ return FSharpMap__get_Count(table) | 0;
1396
1396
  }
package/Random.js CHANGED
@@ -33,13 +33,13 @@ export class NonSeeded {
33
33
  constructor() {
34
34
  }
35
35
  Next0() {
36
- return Native_randomNext(0, 2147483647);
36
+ return Native_randomNext(0, 2147483647) | 0;
37
37
  }
38
38
  Next1(maxValue) {
39
- return Native_randomNext(0, maxValue);
39
+ return Native_randomNext(0, maxValue) | 0;
40
40
  }
41
41
  Next2(minValue, maxValue) {
42
- return Native_randomNext(minValue, maxValue);
42
+ return Native_randomNext(minValue, maxValue) | 0;
43
43
  }
44
44
  NextDouble() {
45
45
  return Native_random();
package/Seq.js CHANGED
@@ -144,7 +144,6 @@ export function Enumerator_concat(sources) {
144
144
  return Enumerator_alreadyFinished();
145
145
  }
146
146
  }, () => {
147
- let copyOfStruct;
148
147
  if (!started) {
149
148
  started = true;
150
149
  }
@@ -154,6 +153,7 @@ export function Enumerator_concat(sources) {
154
153
  else {
155
154
  let res = undefined;
156
155
  while (res == null) {
156
+ let copyOfStruct;
157
157
  const outerOpt_1 = outerOpt;
158
158
  const innerOpt_1 = innerOpt;
159
159
  if (outerOpt_1 != null) {
@@ -1176,16 +1176,16 @@ export function sortWith(comparer, xs) {
1176
1176
  });
1177
1177
  }
1178
1178
  export function sort(xs, comparer) {
1179
- return sortWith((x, y) => comparer.Compare(x, y), xs);
1179
+ return sortWith((x, y) => (comparer.Compare(x, y) | 0), xs);
1180
1180
  }
1181
1181
  export function sortBy(projection, xs, comparer) {
1182
- return sortWith((x, y) => comparer.Compare(projection(x), projection(y)), xs);
1182
+ return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) | 0), xs);
1183
1183
  }
1184
1184
  export function sortDescending(xs, comparer) {
1185
- return sortWith((x, y) => (comparer.Compare(x, y) * -1), xs);
1185
+ return sortWith((x, y) => ((comparer.Compare(x, y) * -1) | 0), xs);
1186
1186
  }
1187
1187
  export function sortByDescending(projection, xs, comparer) {
1188
- return sortWith((x, y) => (comparer.Compare(projection(x), projection(y)) * -1), xs);
1188
+ return sortWith((x, y) => ((comparer.Compare(projection(x), projection(y)) * -1) | 0), xs);
1189
1189
  }
1190
1190
  export function sum(xs, adder) {
1191
1191
  return fold((acc, x) => adder.Add(acc, x), adder.GetZero(), xs);
package/Seq2.js CHANGED
@@ -32,7 +32,7 @@ export function countBy(projection, xs, comparer) {
32
32
  const key = projection(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
33
33
  let matchValue;
34
34
  let outArg = 0;
35
- matchValue = [tryGetValue(dict, key, new FSharpRef(() => outArg, (v) => {
35
+ matchValue = [tryGetValue(dict, key, new FSharpRef(() => (outArg | 0), (v) => {
36
36
  outArg = (v | 0);
37
37
  })), outArg];
38
38
  if (matchValue[0]) {
package/Set.js CHANGED
@@ -42,7 +42,7 @@ export function SetTreeNode$1__get_Right(_) {
42
42
  return _.right;
43
43
  }
44
44
  export function SetTreeNode$1__get_Height(_) {
45
- return _.h;
45
+ return _.h | 0;
46
46
  }
47
47
  export function SetTreeModule_empty() {
48
48
  return undefined;
@@ -69,7 +69,7 @@ export function SetTreeModule_countAux(t_mut, acc_mut) {
69
69
  }
70
70
  }
71
71
  export function SetTreeModule_count(s) {
72
- return SetTreeModule_countAux(s, 0);
72
+ return SetTreeModule_countAux(s, 0) | 0;
73
73
  }
74
74
  export function SetTreeModule_mk(l, k, r) {
75
75
  let tn, tn_1;
@@ -1517,7 +1517,7 @@ export function FSharpSet__Remove(s, value) {
1517
1517
  return FSharpSet_$ctor(FSharpSet__get_Comparer(s), SetTreeModule_remove(FSharpSet__get_Comparer(s), value, FSharpSet__get_Tree(s)));
1518
1518
  }
1519
1519
  export function FSharpSet__get_Count(s) {
1520
- return SetTreeModule_count(FSharpSet__get_Tree(s));
1520
+ return SetTreeModule_count(FSharpSet__get_Tree(s)) | 0;
1521
1521
  }
1522
1522
  export function FSharpSet__Contains(s, value) {
1523
1523
  return SetTreeModule_mem(FSharpSet__get_Comparer(s), value, FSharpSet__get_Tree(s));
@@ -1598,7 +1598,7 @@ export function FSharpSet_Equality(a, b) {
1598
1598
  return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b)) === 0;
1599
1599
  }
1600
1600
  export function FSharpSet_Compare(a, b) {
1601
- return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b));
1601
+ return SetTreeModule_compare(FSharpSet__get_Comparer(a), FSharpSet__get_Tree(a), FSharpSet__get_Tree(b)) | 0;
1602
1602
  }
1603
1603
  export function FSharpSet__get_Choose(x) {
1604
1604
  return SetTreeModule_choose(FSharpSet__get_Tree(x));
@@ -1696,7 +1696,7 @@ export function map(mapping, set$, comparer) {
1696
1696
  return FSharpSet__Map(set$, mapping, comparer);
1697
1697
  }
1698
1698
  export function count(set$) {
1699
- return FSharpSet__get_Count(set$);
1699
+ return FSharpSet__get_Count(set$) | 0;
1700
1700
  }
1701
1701
  export function ofList(elements, comparer) {
1702
1702
  return FSharpSet_$ctor(comparer, SetTreeModule_ofSeq(comparer, elements));
@@ -19,13 +19,13 @@ export function Comparer$1_$ctor_47C913C(comparison) {
19
19
  return new Comparer$1(comparison);
20
20
  }
21
21
  export function Comparer$1_get_Default() {
22
- return Comparer$1_$ctor_47C913C(compare);
22
+ return Comparer$1_$ctor_47C913C((e, e_1) => (compare(e, e_1) | 0));
23
23
  }
24
24
  export function Comparer$1_Create_47C913C(comparison) {
25
25
  return Comparer$1_$ctor_47C913C(comparison);
26
26
  }
27
27
  export function Comparer$1__Compare_5BDDA0(_, x, y) {
28
- return _.comparison(x, y);
28
+ return _.comparison(x, y) | 0;
29
29
  }
30
30
  export class EqualityComparer$1 {
31
31
  constructor(equals, getHashCode) {
@@ -48,7 +48,7 @@ export function EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode) {
48
48
  return new EqualityComparer$1(equals, getHashCode);
49
49
  }
50
50
  export function EqualityComparer$1_get_Default() {
51
- return EqualityComparer$1_$ctor_Z6EE254AB(equals_1, structuralHash);
51
+ return EqualityComparer$1_$ctor_Z6EE254AB(equals_1, (obj) => (structuralHash(obj) | 0));
52
52
  }
53
53
  export function EqualityComparer$1_Create_Z6EE254AB(equals, getHashCode) {
54
54
  return EqualityComparer$1_$ctor_Z6EE254AB(equals, getHashCode);
@@ -57,7 +57,7 @@ export function EqualityComparer$1__Equals_5BDDA0(_, x, y) {
57
57
  return _.equals(x, y);
58
58
  }
59
59
  export function EqualityComparer$1__GetHashCode_2B595(_, x) {
60
- return _.getHashCode(x);
60
+ return _.getHashCode(x) | 0;
61
61
  }
62
62
  export class Stack$1 {
63
63
  constructor(initialContents, initialCount) {
@@ -107,7 +107,7 @@ export function Stack$1__Ensure_Z524259A4(_, newSize) {
107
107
  }
108
108
  }
109
109
  export function Stack$1__get_Count(_) {
110
- return _.count;
110
+ return _.count | 0;
111
111
  }
112
112
  export function Stack$1__Pop(_) {
113
113
  _.count = ((_.count - 1) | 0);
@@ -203,7 +203,7 @@ export function Queue$1_$ctor_BB573A(xs) {
203
203
  return Queue$1_$ctor_Z3B4C077E(arr, arr.length);
204
204
  }
205
205
  export function Queue$1__get_Count(_) {
206
- return _.count;
206
+ return _.count | 0;
207
207
  }
208
208
  export function Queue$1__Enqueue_2B595(_, value) {
209
209
  if (_.count === Queue$1__size(_)) {
@@ -288,10 +288,10 @@ export function Queue$1__CopyTo_Z3B4C077E(_, target, start) {
288
288
  }
289
289
  }
290
290
  export function Queue$1__size(this$) {
291
- return this$.contents.length;
291
+ return this$.contents.length | 0;
292
292
  }
293
293
  export function Queue$1__toIndex_Z524259A4(this$, i) {
294
- return (this$.head + i) % Queue$1__size(this$);
294
+ return ((this$.head + i) % Queue$1__size(this$)) | 0;
295
295
  }
296
296
  export function Queue$1__ensure_Z524259A4(this$, requiredSize) {
297
297
  const newBuffer = fill(new Array(requiredSize), 0, requiredSize, null);
package/Types.js CHANGED
@@ -19,7 +19,7 @@ export function seqToString(self) {
19
19
  }
20
20
  export function toString(x, callStack = 0) {
21
21
  if (x != null && typeof x === "object") {
22
- if (typeof x.toString === "function") {
22
+ if (typeof x.toString === "function" && x.toString !== Object.prototype.toString) {
23
23
  return x.toString();
24
24
  }
25
25
  else if (Symbol.iterator in x) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "type": "module",
5
5
  "name": "@fable-org/fable-library-js",
6
- "version": "1.10.0",
6
+ "version": "2.0.0-beta.1",
7
7
  "description": "Core library used by F# projects compiled with fable.io",
8
8
  "author": "Fable Contributors",
9
9
  "license": "MIT",