mol_mutable 0.0.1079 → 0.0.1081
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
|
@@ -207,15 +207,15 @@ var $;
|
|
|
207
207
|
"use strict";
|
|
208
208
|
var $;
|
|
209
209
|
(function ($) {
|
|
210
|
-
const catched = new
|
|
210
|
+
const catched = new WeakSet();
|
|
211
211
|
function $mol_fail_catch(error) {
|
|
212
212
|
if (typeof error !== 'object')
|
|
213
213
|
return false;
|
|
214
214
|
if ($mol_promise_like(error))
|
|
215
215
|
$mol_fail_hidden(error);
|
|
216
|
-
if (catched.
|
|
216
|
+
if (catched.has(error))
|
|
217
217
|
return false;
|
|
218
|
-
catched.
|
|
218
|
+
catched.add(error);
|
|
219
219
|
return true;
|
|
220
220
|
}
|
|
221
221
|
$.$mol_fail_catch = $mol_fail_catch;
|