Skip to content

Commit

Permalink
add warning when precomputed chunk is too big + add browser tests for…
Browse files Browse the repository at this point in the history
… Float
  • Loading branch information
feedthejim committed Nov 11, 2022
1 parent 4bd245e commit 725debc
Show file tree
Hide file tree
Showing 3 changed files with 5,807 additions and 5,552 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2443,7 +2443,10 @@ export function writeCompletedBoundaryInstruction(
if (!responseState.sentCompleteBoundaryFunction) {
responseState.sentCompleteBoundaryFunction = true;
responseState.sentStyleInsertionFunction = true;
writeChunk(destination, completeBoundaryWithStylesScript1FullBoth);
writeChunk(
destination,
completeBoundaryWithStylesScript1FullBoth.slice(),
);
} else if (!responseState.sentStyleInsertionFunction) {
responseState.sentStyleInsertionFunction = true;
writeChunk(destination, completeBoundaryWithStylesScript1FullPartial);
Expand Down
Loading

0 comments on commit 725debc

Please sign in to comment.