mol_text_distance 0.0.1111 → 0.0.1112
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 +10 -1
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1322,9 +1322,18 @@ var $;
|
|
|
1322
1322
|
}
|
|
1323
1323
|
destructor() {
|
|
1324
1324
|
super.destructor();
|
|
1325
|
-
if (
|
|
1325
|
+
if (!$mol_owning_check(this, this.cache))
|
|
1326
|
+
return;
|
|
1327
|
+
try {
|
|
1326
1328
|
this.cache.destructor();
|
|
1327
1329
|
}
|
|
1330
|
+
catch (result) {
|
|
1331
|
+
if ($mol_promise_like(result)) {
|
|
1332
|
+
const error = new Error(`Promise in ${this}.destructor()`);
|
|
1333
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
1334
|
+
}
|
|
1335
|
+
$mol_fail_hidden(result);
|
|
1336
|
+
}
|
|
1328
1337
|
}
|
|
1329
1338
|
}
|
|
1330
1339
|
$.$mol_wire_fiber = $mol_wire_fiber;
|