fix: append large parser collections safely
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
|
||||
import { BinaryReader } from '../binary/BinaryReader.js';
|
||||
import { filetimeToIso, oneNoteTimeToIso } from '../binary/time.js';
|
||||
import { appendItems } from '../model/append.js';
|
||||
import type { ParserDiagnostic } from '../model/diagnostics.js';
|
||||
import type { OneNotePageSummaryDto, OneNoteSectionDto } from '../model/dto.js';
|
||||
import type { OneNoteParserLimits } from '../parser/limits.js';
|
||||
@@ -341,7 +342,10 @@ function traverseReferences(
|
||||
): string[] {
|
||||
const result: string[] = [];
|
||||
for (const id of ids) {
|
||||
result.push(...extractGraphText(context, space, id, active, depth + 1));
|
||||
appendItems(
|
||||
result,
|
||||
extractGraphText(context, space, id, active, depth + 1)
|
||||
);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user