mol_regexp 0.0.1462 → 0.0.1464
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 +11 -2
- package/node.test.js.map +1 -1
- package/package.json +1 -1
package/node.test.js
CHANGED
|
@@ -1387,7 +1387,7 @@ var $;
|
|
|
1387
1387
|
return $mol_promise_like(this.cache);
|
|
1388
1388
|
}
|
|
1389
1389
|
field() {
|
|
1390
|
-
return this.task.name + '
|
|
1390
|
+
return this.task.name + '()';
|
|
1391
1391
|
}
|
|
1392
1392
|
constructor(id, task, host, args) {
|
|
1393
1393
|
super();
|
|
@@ -1564,9 +1564,18 @@ var $;
|
|
|
1564
1564
|
}
|
|
1565
1565
|
destructor() {
|
|
1566
1566
|
super.destructor();
|
|
1567
|
-
if (
|
|
1567
|
+
if (!$mol_owning_check(this, this.cache))
|
|
1568
|
+
return;
|
|
1569
|
+
try {
|
|
1568
1570
|
this.cache.destructor();
|
|
1569
1571
|
}
|
|
1572
|
+
catch (result) {
|
|
1573
|
+
if ($mol_promise_like(result)) {
|
|
1574
|
+
const error = new Error(`Promise in ${this}.destructor()`);
|
|
1575
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
1576
|
+
}
|
|
1577
|
+
$mol_fail_hidden(result);
|
|
1578
|
+
}
|
|
1570
1579
|
}
|
|
1571
1580
|
}
|
|
1572
1581
|
$.$mol_wire_fiber = $mol_wire_fiber;
|