summaryrefslogtreecommitdiff
path: root/cli/js/web/streams/writable_stream.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/web/streams/writable_stream.ts')
-rw-r--r--cli/js/web/streams/writable_stream.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/js/web/streams/writable_stream.ts b/cli/js/web/streams/writable_stream.ts
index 2dea5311b..94bedb941 100644
--- a/cli/js/web/streams/writable_stream.ts
+++ b/cli/js/web/streams/writable_stream.ts
@@ -36,7 +36,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
constructor(
underlyingSink: UnderlyingSink = {},
- strategy: QueuingStrategy = {}
+ strategy: QueuingStrategy = {},
) {
initializeWritableStream(this);
const size = strategy.size;
@@ -51,7 +51,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
this,
underlyingSink,
highWaterMark,
- sizeAlgorithm
+ sizeAlgorithm,
);
}
@@ -69,7 +69,7 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
}
if (isWritableStreamLocked(this)) {
return Promise.reject(
- new TypeError("Cannot abort a locked WritableStream.")
+ new TypeError("Cannot abort a locked WritableStream."),
);
}
return writableStreamAbort(this, reason);
@@ -81,12 +81,12 @@ export class WritableStreamImpl<W = any> implements WritableStream<W> {
}
if (isWritableStreamLocked(this)) {
return Promise.reject(
- new TypeError("Cannot abort a locked WritableStream.")
+ new TypeError("Cannot abort a locked WritableStream."),
);
}
if (writableStreamCloseQueuedOrInFlight(this)) {
return Promise.reject(
- new TypeError("Cannot close an already closing WritableStream.")
+ new TypeError("Cannot close an already closing WritableStream."),
);
}
return writableStreamClose(this);