mol_crypto_lib 0.1.1675 → 0.1.1677
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 +3 -3
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.js
CHANGED
|
@@ -288,15 +288,15 @@ var $;
|
|
|
288
288
|
"use strict";
|
|
289
289
|
var $;
|
|
290
290
|
(function ($) {
|
|
291
|
-
const catched = new
|
|
291
|
+
const catched = new WeakSet();
|
|
292
292
|
function $mol_fail_catch(error) {
|
|
293
293
|
if (typeof error !== 'object')
|
|
294
294
|
return false;
|
|
295
295
|
if ($mol_promise_like(error))
|
|
296
296
|
$mol_fail_hidden(error);
|
|
297
|
-
if (catched.
|
|
297
|
+
if (catched.has(error))
|
|
298
298
|
return false;
|
|
299
|
-
catched.
|
|
299
|
+
catched.add(error);
|
|
300
300
|
return true;
|
|
301
301
|
}
|
|
302
302
|
$.$mol_fail_catch = $mol_fail_catch;
|