(err)
| 547 | const continuationWindow = this.#continuationWindow; |
| 548 | |
| 549 | function reject(err) { |
| 550 | context.error = err; |
| 551 | error.publish(context); |
| 552 | // Use continuation window for asyncStart/asyncEnd |
| 553 | // eslint-disable-next-line no-unused-vars |
| 554 | using scope = continuationWindow.withScope(context); |
| 555 | // TODO: Is there a way to have asyncEnd _after_ the continuation? |
| 556 | return PromiseReject(err); |
| 557 | } |
| 558 | |
| 559 | function resolve(result) { |
| 560 | context.result = result; |