Code review fixes

This commit is contained in:
Vanilagy
2026-04-16 17:43:12 +02:00
parent aadfa77489
commit b85ecd3109
13 changed files with 253 additions and 44 deletions
+2 -1
View File
@@ -445,7 +445,7 @@ export class Output<
&& typeof options.initTarget !== 'function'
) {
throw new Error(
'options.getInitTarget, when provided, must be a Target or a function that returns or resolves to'
'options.initTarget, when provided, must be a Target or a function that returns or resolves to'
+ ' a Target.',
);
}
@@ -550,6 +550,7 @@ export class Output<
target._output = this;
if (this.state === 'canceled') {
// Promise thrown away here, but no way to surface it to the user really
void target._close();
} else {
this._targets.add(target);