Skip to content

Commit

Permalink
Ignore byte-order mark (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
timostamm authored Aug 17, 2022
1 parent 522b8b5 commit 5c5b82e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/runtime/src/binary-reader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export class BinaryReader implements IBinaryReader {
this.pos = 0;
this.view = new DataView(buf.buffer, buf.byteOffset, buf.byteLength);
this.textDecoder = textDecoder ?? new TextDecoder("utf-8", {
fatal: true
fatal: true,
ignoreBOM: true,
});
}

Expand Down

0 comments on commit 5c5b82e

Please sign in to comment.