mol_tree2 1.0.649 → 1.0.651
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 +15 -13
- package/node.test.js.map +1 -1
- package/package.json +1 -1
- package/web.test.js +15 -13
- package/web.test.js.map +1 -1
package/node.test.js
CHANGED
|
@@ -4630,16 +4630,13 @@ var $;
|
|
|
4630
4630
|
result = this.task.call(this.host, ...this.args);
|
|
4631
4631
|
break;
|
|
4632
4632
|
}
|
|
4633
|
-
if ($mol_promise_like(result)) {
|
|
4633
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
4634
4634
|
const put = (res) => {
|
|
4635
4635
|
if (this.cache === result)
|
|
4636
4636
|
this.put(res);
|
|
4637
4637
|
return res;
|
|
4638
4638
|
};
|
|
4639
|
-
result =
|
|
4640
|
-
destructor: result['destructor'] ?? (() => { })
|
|
4641
|
-
});
|
|
4642
|
-
handled.add(result);
|
|
4639
|
+
result = result.then(put, put);
|
|
4643
4640
|
}
|
|
4644
4641
|
}
|
|
4645
4642
|
catch (error) {
|
|
@@ -4650,15 +4647,20 @@ var $;
|
|
|
4650
4647
|
result = new Error(String(error), { cause: error });
|
|
4651
4648
|
}
|
|
4652
4649
|
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
4653
|
-
result =
|
|
4650
|
+
result = result.finally(() => {
|
|
4654
4651
|
if (this.cache === result)
|
|
4655
4652
|
this.absorb();
|
|
4656
|
-
}), {
|
|
4657
|
-
destructor: result['destructor'] ?? (() => { })
|
|
4658
4653
|
});
|
|
4659
|
-
handled.add(result);
|
|
4660
4654
|
}
|
|
4661
4655
|
}
|
|
4656
|
+
if ($mol_promise_like(result) && !handled.has(result)) {
|
|
4657
|
+
result = Object.assign(result, {
|
|
4658
|
+
destructor: result['destructor'] ?? (() => { })
|
|
4659
|
+
});
|
|
4660
|
+
handled.add(result);
|
|
4661
|
+
const error = new Error();
|
|
4662
|
+
Object.defineProperty(result, 'stack', { get: () => error.stack });
|
|
4663
|
+
}
|
|
4662
4664
|
if (!$mol_promise_like(result)) {
|
|
4663
4665
|
this.track_cut();
|
|
4664
4666
|
}
|
|
@@ -6694,10 +6696,10 @@ var $;
|
|
|
6694
6696
|
"use strict";
|
|
6695
6697
|
var $;
|
|
6696
6698
|
(function ($) {
|
|
6697
|
-
function $mol_style_prop(prefix,
|
|
6698
|
-
const record =
|
|
6699
|
-
|
|
6700
|
-
return
|
|
6699
|
+
function $mol_style_prop(prefix, keys) {
|
|
6700
|
+
const record = keys.reduce((rec, key) => {
|
|
6701
|
+
rec[key] = $mol_style_func.vary(`--${prefix}_${key}`);
|
|
6702
|
+
return rec;
|
|
6701
6703
|
}, {});
|
|
6702
6704
|
return record;
|
|
6703
6705
|
}
|