diff options
author | crowlKats <crowlkats@gmail.com> | 2020-03-13 10:22:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:22:22 +0100 |
commit | e435c2be158ce8657dbff0664b6db222fe4e586c (patch) | |
tree | b0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/web/text_encoding.ts | |
parent | 3ac642c183981a366e1db565c16b81f864b07ee4 (diff) |
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/web/text_encoding.ts')
-rw-r--r-- | cli/js/web/text_encoding.ts | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/cli/js/web/text_encoding.ts b/cli/js/web/text_encoding.ts index 928cbe7e1..2da53d934 100644 --- a/cli/js/web/text_encoding.ts +++ b/cli/js/web/text_encoding.ts @@ -92,7 +92,6 @@ class UTF8Encoder implements Encoder { } } -/** Decodes a string of data which has been encoded using base-64. */ export function atob(s: string): string { s = String(s); s = s.replace(/[\t\n\f\r ]/g, ""); @@ -120,7 +119,6 @@ export function atob(s: string): string { return result; } -/** Creates a base-64 ASCII string from the input string. */ export function btoa(s: string): string { const byteArray = []; for (let i = 0; i < s.length; i++) { @@ -303,13 +301,10 @@ function isEitherArrayBuffer(x: any): x is EitherArrayBuffer { export class TextDecoder { private _encoding: string; - /** Returns encoding's name, lowercased. */ get encoding(): string { return this._encoding; } - /** Returns `true` if error mode is "fatal", and `false` otherwise. */ readonly fatal: boolean = false; - /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ readonly ignoreBOM: boolean = false; constructor(label = "utf-8", options: TextDecoderOptions = { fatal: false }) { @@ -334,7 +329,6 @@ export class TextDecoder { this._encoding = encoding; } - /** Returns the result of running encoding's decoder. */ decode( input?: domTypes.BufferSource, options: TextDecodeOptions = { stream: false } @@ -400,9 +394,7 @@ interface TextEncoderEncodeIntoResult { } export class TextEncoder { - /** Returns "utf-8". */ readonly encoding = "utf-8"; - /** Returns the result of running UTF-8's encoder. */ encode(input = ""): Uint8Array { // For performance reasons we utilise a highly optimised decoder instead of // the general decoder. |