Skip to content

Commit

Permalink
Deployed using Blazing fast GitHub Pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
nin-jin committed Mar 18, 2024
1 parent 49a6c60 commit 3212d08
Show file tree
Hide file tree
Showing 10 changed files with 204 additions and 204 deletions.
146 changes: 73 additions & 73 deletions node.d.ts

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions node.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node.js.map

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -792,17 +792,13 @@ var $;
result = this.task.call(this.host, ...this.args);
break;
}
if ($mol_promise_like(result)) {
if ($mol_promise_like(result) && !handled.has(result)) {
const put = (res) => {
if (this.cache === result)
this.put(res);
return res;
};
result = Object.assign(result.then(put, put), {
destructor: result['destructor'] ?? (() => { })
});
Error.captureStackTrace(result);
handled.add(result);
result = result.then(put, put);
}
}
catch (error) {
Expand All @@ -813,16 +809,20 @@ var $;
result = new Error(String(error), { cause: error });
}
if ($mol_promise_like(result) && !handled.has(result)) {
result = Object.assign(result.finally(() => {
result = result.finally(() => {
if (this.cache === result)
this.absorb();
}), {
destructor: result['destructor'] ?? (() => { })
});
Error.captureStackTrace(result);
handled.add(result);
}
}
if ($mol_promise_like(result) && !handled.has(result)) {
result = Object.assign(result, {
destructor: result['destructor'] ?? (() => { })
});
handled.add(result);
const error = new Error();
Object.defineProperty(result, 'stack', { get: () => error.stack });
}
if (!$mol_promise_like(result)) {
this.track_cut();
}
Expand Down
22 changes: 11 additions & 11 deletions node.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion node.test.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 3212d08

Please sign in to comment.