Remove uses of the spread operator that appear to have caused a maximum call stack size exceeded error (#1389)

This commit is contained in:
Jacob Richman 2025-06-24 21:38:25 +00:00 committed by GitHub
parent 75ed7aaa06
commit 5ff00b0c5d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -408,7 +408,9 @@ function layoutInkElementAsStyledText(
) { ) {
lines.push(currentLine); lines.push(currentLine);
} }
output.push(...lines); for (const line of lines) {
output.push(line);
}
return; return;
} }
@ -524,5 +526,7 @@ function layoutInkElementAsStyledText(
if (wrappingPart.length > 0) { if (wrappingPart.length > 0) {
addWrappingPartToLines(); addWrappingPartToLines();
} }
output.push(...lines); for (const line of lines) {
output.push(line);
}
} }