mol_compare_deep 0.0.1078 → 0.0.1079

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
@@ -2253,7 +2253,7 @@ var $;
2253
2253
  }
2254
2254
  return this.cache;
2255
2255
  }
2256
- async async() {
2256
+ async async_raw() {
2257
2257
  while (true) {
2258
2258
  this.fresh();
2259
2259
  if (this.cache instanceof Error) {
@@ -2269,6 +2269,12 @@ var $;
2269
2269
  }
2270
2270
  }
2271
2271
  }
2272
+ async() {
2273
+ const promise = this.async_raw();
2274
+ if (!promise.destructor)
2275
+ promise.destructor = () => this.destructor();
2276
+ return promise;
2277
+ }
2272
2278
  step() {
2273
2279
  return new Promise(done => {
2274
2280
  const sub = new $mol_wire_pub_sub;