mam 1.11.772 → 1.11.773

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/node.js CHANGED
@@ -1898,15 +1898,15 @@ var $;
1898
1898
  "use strict";
1899
1899
  var $;
1900
1900
  (function ($) {
1901
- const catched = new WeakMap();
1901
+ const catched = new WeakSet();
1902
1902
  function $mol_fail_catch(error) {
1903
1903
  if (typeof error !== 'object')
1904
1904
  return false;
1905
1905
  if ($mol_promise_like(error))
1906
1906
  $mol_fail_hidden(error);
1907
- if (catched.get(error))
1907
+ if (catched.has(error))
1908
1908
  return false;
1909
- catched.set(error, true);
1909
+ catched.add(error);
1910
1910
  return true;
1911
1911
  }
1912
1912
  $.$mol_fail_catch = $mol_fail_catch;