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 +3 -3
- package/node.js.map +1 -1
- package/node.mjs +3 -3
- package/node.test.js +23 -12
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -1898,15 +1898,15 @@ var $;
|
|
|
1898
1898
|
"use strict";
|
|
1899
1899
|
var $;
|
|
1900
1900
|
(function ($) {
|
|
1901
|
-
const catched = new
|
|
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.
|
|
1907
|
+
if (catched.has(error))
|
|
1908
1908
|
return false;
|
|
1909
|
-
catched.
|
|
1909
|
+
catched.add(error);
|
|
1910
1910
|
return true;
|
|
1911
1911
|
}
|
|
1912
1912
|
$.$mol_fail_catch = $mol_fail_catch;
|