Skip to content

Commit 3112703

Browse files
committed
protect stack size even further
1 parent fb56c49 commit 3112703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/utf8.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function utf8EncodeTEencodeInto(str: string, output: Uint8Array, outputOffset: n
100100
export const utf8EncodeTE =
101101
sharedTextEncoder && sharedTextEncoder.encodeInto ? utf8EncodeTEencodeInto : utf8EncodeTEencode;
102102

103-
const CHUNK_SIZE = 0x10_000;
103+
const CHUNK_SIZE = 0x1_000;
104104

105105
export function utf8DecodeJs(bytes: Uint8Array, inputOffset: number, byteLength: number): string {
106106
let offset = inputOffset;

0 commit comments

Comments
 (0)