mol_regexp 0.0.1695 → 0.0.1697
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
|
@@ -472,15 +472,15 @@ var $;
|
|
|
472
472
|
"use strict";
|
|
473
473
|
var $;
|
|
474
474
|
(function ($) {
|
|
475
|
-
const catched = new
|
|
475
|
+
const catched = new WeakSet();
|
|
476
476
|
function $mol_fail_catch(error) {
|
|
477
477
|
if (typeof error !== 'object')
|
|
478
478
|
return false;
|
|
479
479
|
if ($mol_promise_like(error))
|
|
480
480
|
$mol_fail_hidden(error);
|
|
481
|
-
if (catched.
|
|
481
|
+
if (catched.has(error))
|
|
482
482
|
return false;
|
|
483
|
-
catched.
|
|
483
|
+
catched.add(error);
|
|
484
484
|
return true;
|
|
485
485
|
}
|
|
486
486
|
$.$mol_fail_catch = $mol_fail_catch;
|