mol_tree2 1.0.1253 → 1.0.1255
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.test.js +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1567,15 +1567,15 @@ var $;
|
|
|
1567
1567
|
"use strict";
|
|
1568
1568
|
var $;
|
|
1569
1569
|
(function ($) {
|
|
1570
|
-
const catched = new
|
|
1570
|
+
const catched = new WeakSet();
|
|
1571
1571
|
function $mol_fail_catch(error) {
|
|
1572
1572
|
if (typeof error !== 'object')
|
|
1573
1573
|
return false;
|
|
1574
1574
|
if ($mol_promise_like(error))
|
|
1575
1575
|
$mol_fail_hidden(error);
|
|
1576
|
-
if (catched.
|
|
1576
|
+
if (catched.has(error))
|
|
1577
1577
|
return false;
|
|
1578
|
-
catched.
|
|
1578
|
+
catched.add(error);
|
|
1579
1579
|
return true;
|
|
1580
1580
|
}
|
|
1581
1581
|
$.$mol_fail_catch = $mol_fail_catch;
|