dillon1000/react

Commit

[test] Add coverage for multi-byte code units in stream APIs (#36900)

Adds a test documenting why a `string.length`
fast path is unsound.

`byteSize` feeds heuristic decisions (outlining threshold at 500 bytes,
progressive chunk sizing). `string.length` undercounts multi-byte
content, so a boundary that is really >500 bytes could drop below the
outlining threshold.

---------

Co-authored-by: Claude Opus 4.7 <[email protected]>
Browse files
Changed paths2 files
First-parent comparison
M packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMNode-test.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…