@fluffylabs/anan-as 1.2.0-9723cd9 → 1.2.0-9f08a39

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.
Binary file
Binary file
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  // Portable bootstrap for globals that must exist before assembly/portable executes.
2
3
  const g = globalThis;
3
4
  if (g.ASC_TARGET === undefined) {
@@ -376,7 +376,8 @@ if (typeof globalScope.ASC_TARGET === "undefined") {
376
376
  }, defaultComparator = function(a, b) {
377
377
  if (a == b) {
378
378
  if (a != 0) return 0;
379
- a = 1 / a, b = 1 / b;
379
+ a = 1 / a;
380
+ b = 1 / b;
380
381
  } else {
381
382
  let nanA = a != a, nanB = b != b;
382
383
  if (nanA | nanB) return nanA - nanB;
@@ -622,9 +623,9 @@ if (typeof globalScope.ASC_TARGET === "undefined") {
622
623
  }
623
624
  if (!String.prototype.replaceAll) {
624
625
  Object.defineProperty(String.prototype, "replaceAll", {
625
- value: function replaceAll(search, replacment) {
626
- let res = this.split(search).join(replacment);
627
- if (!search.length) res = replacment + res + replacment;
626
+ value: function replaceAll(search, replacement) {
627
+ let res = this.split(search).join(replacement);
628
+ if (!search.length) res = replacement + res + replacement;
628
629
  return res;
629
630
  },
630
631
  configurable: true