Implement ignoreBOM option of UTF8Decoder in text_encoding (#3040)

This commit is contained in:
Tomohito Nakayama 2019-10-02 09:08:51 +09:00 committed by Ryan Dahl
parent 75eeac03f3
commit a646c2a885
3 changed files with 60 additions and 5 deletions

View file

@ -2372,7 +2372,7 @@ declare namespace textEncoding {
}
export interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: false;
ignoreBOM?: boolean;
}
export class TextDecoder {
private _encoding;