mol_text_distance 0.0.1111 → 0.0.1113

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 CHANGED
@@ -1145,7 +1145,7 @@ var $;
1145
1145
  return $mol_promise_like(this.cache);
1146
1146
  }
1147
1147
  field() {
1148
- return this.task.name + '<>';
1148
+ return this.task.name + '()';
1149
1149
  }
1150
1150
  constructor(id, task, host, args) {
1151
1151
  super();
@@ -1322,9 +1322,18 @@ var $;
1322
1322
  }
1323
1323
  destructor() {
1324
1324
  super.destructor();
1325
- if ($mol_owning_check(this, this.cache)) {
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;