summaryrefslogtreecommitdiff
path: root/cli/js/web/streams/readable_stream_default_controller.ts
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2020-07-14 15:24:17 -0400
committerGitHub <noreply@github.com>2020-07-14 15:24:17 -0400
commitcde4dbb35132848ffece59ef9cfaccff32347124 (patch)
treecc7830968c6decde704c8cfb83c9185193dc698f /cli/js/web/streams/readable_stream_default_controller.ts
parent9eca71caa1674c31f9cc5d4e86c03f10b59e0a00 (diff)
Use dprint for internal formatting (#6682)
Diffstat (limited to 'cli/js/web/streams/readable_stream_default_controller.ts')
-rw-r--r--cli/js/web/streams/readable_stream_default_controller.ts16
1 files changed, 8 insertions, 8 deletions
diff --git a/cli/js/web/streams/readable_stream_default_controller.ts b/cli/js/web/streams/readable_stream_default_controller.ts
index 066bc8a8f..8536712b9 100644
--- a/cli/js/web/streams/readable_stream_default_controller.ts
+++ b/cli/js/web/streams/readable_stream_default_controller.ts
@@ -41,7 +41,7 @@ export class ReadableStreamDefaultControllerImpl<R = any>
private constructor() {
throw new TypeError(
- "ReadableStreamDefaultController's constructor cannot be called."
+ "ReadableStreamDefaultController's constructor cannot be called.",
);
}
@@ -58,7 +58,7 @@ export class ReadableStreamDefaultControllerImpl<R = any>
}
if (!readableStreamDefaultControllerCanCloseOrEnqueue(this)) {
throw new TypeError(
- "ReadableStreamDefaultController cannot close or enqueue."
+ "ReadableStreamDefaultController cannot close or enqueue.",
);
}
readableStreamDefaultControllerClose(this);
@@ -104,8 +104,8 @@ export class ReadableStreamDefaultControllerImpl<R = any>
readableStreamCreateReadResult(
chunk,
false,
- stream[sym.reader]![sym.forAuthorCode]
- )
+ stream[sym.reader]![sym.forAuthorCode],
+ ),
);
}
const pendingPromise = readableStreamAddReadRequest(stream);
@@ -114,13 +114,13 @@ export class ReadableStreamDefaultControllerImpl<R = any>
}
[customInspect](): string {
- return `${this.constructor.name} { desiredSize: ${String(
- this.desiredSize
- )} }`;
+ return `${this.constructor.name} { desiredSize: ${
+ String(this.desiredSize)
+ } }`;
}
}
setFunctionName(
ReadableStreamDefaultControllerImpl,
- "ReadableStreamDefaultController"
+ "ReadableStreamDefaultController",
);