diff options
Diffstat (limited to 'std/io/writers.ts')
-rw-r--r-- | std/io/writers.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/io/writers.ts b/std/io/writers.ts index 722e0297f..b9a6a5e70 100644 --- a/std/io/writers.ts +++ b/std/io/writers.ts @@ -14,11 +14,11 @@ export class StringWriter implements Writer { this.byteLength += c.byteLength; } - async write(p: Uint8Array): Promise<number> { + write(p: Uint8Array): Promise<number> { this.chunks.push(p); this.byteLength += p.byteLength; this.cache = undefined; - return p.byteLength; + return Promise.resolve(p.byteLength); } toString(): string { |