mol_text_distance 0.0.1353 → 0.0.1354
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
|
@@ -215,15 +215,15 @@ var $;
|
|
|
215
215
|
"use strict";
|
|
216
216
|
var $;
|
|
217
217
|
(function ($) {
|
|
218
|
-
const catched = new
|
|
218
|
+
const catched = new WeakSet();
|
|
219
219
|
function $mol_fail_catch(error) {
|
|
220
220
|
if (typeof error !== 'object')
|
|
221
221
|
return false;
|
|
222
222
|
if ($mol_promise_like(error))
|
|
223
223
|
$mol_fail_hidden(error);
|
|
224
|
-
if (catched.
|
|
224
|
+
if (catched.has(error))
|
|
225
225
|
return false;
|
|
226
|
-
catched.
|
|
226
|
+
catched.add(error);
|
|
227
227
|
return true;
|
|
228
228
|
}
|
|
229
229
|
$.$mol_fail_catch = $mol_fail_catch;
|