mol_data_all 1.1.1645 → 1.1.1646
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
|
@@ -737,15 +737,15 @@ var $;
|
|
|
737
737
|
"use strict";
|
|
738
738
|
var $;
|
|
739
739
|
(function ($) {
|
|
740
|
-
const catched = new
|
|
740
|
+
const catched = new WeakSet();
|
|
741
741
|
function $mol_fail_catch(error) {
|
|
742
742
|
if (typeof error !== 'object')
|
|
743
743
|
return false;
|
|
744
744
|
if ($mol_promise_like(error))
|
|
745
745
|
$mol_fail_hidden(error);
|
|
746
|
-
if (catched.
|
|
746
|
+
if (catched.has(error))
|
|
747
747
|
return false;
|
|
748
|
-
catched.
|
|
748
|
+
catched.add(error);
|
|
749
749
|
return true;
|
|
750
750
|
}
|
|
751
751
|
$.$mol_fail_catch = $mol_fail_catch;
|