Remove uses of the spread operator that appear to have caused a maximum call stack size exceeded error (#1389)
This commit is contained in:
parent
75ed7aaa06
commit
5ff00b0c5d
|
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue