mol_mutable 0.0.843 → 0.0.844
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
|
@@ -1299,9 +1299,18 @@ var $;
|
|
|
1299
1299
|
}
|
|
1300
1300
|
destructor() {
|
|
1301
1301
|
super.destructor();
|
|
1302
|
-
if (
|
|
1302
|
+
if (!$mol_owning_check(this, this.cache))
|
|
1303
|
+
return;
|
|
1304
|
+
try {
|
|
1303
1305
|
this.cache.destructor();
|
|
1304
1306
|
}
|
|
1307
|
+
catch (result) {
|
|
1308
|
+
if ($mol_promise_like(result)) {
|
|
1309
|
+
const error = new Error(`Promise in ${this}.destructor()`);
|
|
1310
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
1311
|
+
}
|
|
1312
|
+
$mol_fail_hidden(result);
|
|
1313
|
+
}
|
|
1305
1314
|
}
|
|
1306
1315
|
}
|
|
1307
1316
|
$.$mol_wire_fiber = $mol_wire_fiber;
|