dillon1000/react
Commit
Browse files [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]>
Changed paths2 files
First-parent comparisonpackages/react-dom/src/__tests__/ReactDOMFizzServer-test.js ModifiedM packages/react-server-dom-webpack/src/__tests__/ReactFlightDOMNode-test.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…