Skip to content

Commit

Permalink
fix on recursive call
Browse files Browse the repository at this point in the history
  • Loading branch information
masataka committed May 7, 2022
1 parent 05bf806 commit 4a44289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ export class SAXParser extends ParserBase implements UnderlyingSink<Uint8Array>
await readableStreamFromReader(source).pipeThrough(
new TextDecoderStream(this._encoding),
).pipeTo(
new WritableStream<string>({ write: str => this.parse(str) }),
new WritableStream<string>({ write: str => this.parse(str, encoding) }),
);
}
}
Expand Down

0 comments on commit 4a44289

Please sign in to comment.