Skip to content

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Oct 8, 2023
1 parent a4fb327 commit 6cd299b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/runtime/src/polyfills/text-decoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ export class TextDecoder implements globalThis.TextDecoder {
fatal: boolean;
ignoreBOM: boolean;
constructor(encoding?: string) {
if (typeof encoding === 'string' && encoding !== 'utf-8' && encoding !== 'utf8') {
if (
typeof encoding === 'string' &&
encoding !== 'utf-8' &&
encoding !== 'utf8'
) {
throw new TypeError('Only "utf-8" decoding is supported');
}
this.encoding = 'utf-8';
Expand Down

0 comments on commit 6cd299b

Please sign in to comment.