mol_key 0.0.1418 → 0.0.1420
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
|
@@ -130,15 +130,15 @@ var $;
|
|
|
130
130
|
"use strict";
|
|
131
131
|
var $;
|
|
132
132
|
(function ($) {
|
|
133
|
-
const catched = new
|
|
133
|
+
const catched = new WeakSet();
|
|
134
134
|
function $mol_fail_catch(error) {
|
|
135
135
|
if (typeof error !== 'object')
|
|
136
136
|
return false;
|
|
137
137
|
if ($mol_promise_like(error))
|
|
138
138
|
$mol_fail_hidden(error);
|
|
139
|
-
if (catched.
|
|
139
|
+
if (catched.has(error))
|
|
140
140
|
return false;
|
|
141
|
-
catched.
|
|
141
|
+
catched.add(error);
|
|
142
142
|
return true;
|
|
143
143
|
}
|
|
144
144
|
$.$mol_fail_catch = $mol_fail_catch;
|