Skip to content

Commit cb16805

Browse files
samselclaude
andcommitted
Fix TextDecoder constructor: remove invalid stream option
The stream option belongs on decode() calls, not the constructor. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 422be27 commit cb16805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib/mbox-parser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export async function parseMboxStream(
6767
onEmail: (raw: ArrayBuffer) => Promise<void>,
6868
): Promise<number> {
6969
const reader = stream.getReader()
70-
const decoder = new TextDecoder('utf-8', { stream: true })
70+
const decoder = new TextDecoder('utf-8')
7171
let emailCount = 0
7272

7373
// Accumulates the current mbox segment (one "From ..." block)

0 commit comments

Comments
 (0)