mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
Remove uses of the spread operator that appear to have caused a maximum call stack size exceeded error (#1389)
This commit is contained in:
@@ -408,7 +408,9 @@ function layoutInkElementAsStyledText(
|
||||
) {
|
||||
lines.push(currentLine);
|
||||
}
|
||||
output.push(...lines);
|
||||
for (const line of lines) {
|
||||
output.push(line);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -524,5 +526,7 @@ function layoutInkElementAsStyledText(
|
||||
if (wrappingPart.length > 0) {
|
||||
addWrappingPartToLines();
|
||||
}
|
||||
output.push(...lines);
|
||||
for (const line of lines) {
|
||||
output.push(line);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user