feat: open FSSHTTP OneNote sections
This commit is contained in:
@@ -187,6 +187,16 @@ function objectReferences(object: StoreObject, propertyId: number): ExGuid[] {
|
||||
propertyId,
|
||||
countObjectReferences
|
||||
);
|
||||
if (object.resolvedObjectIds) {
|
||||
if (offset + count > object.resolvedObjectIds.length) {
|
||||
throw new OneNoteParserError(
|
||||
'MISSING_REFERENCE',
|
||||
'TOC object-reference range exceeds its resolved OID stream',
|
||||
{ structure: 'TOCEntryIndex_OidIndex' }
|
||||
);
|
||||
}
|
||||
return object.resolvedObjectIds.slice(offset, offset + count);
|
||||
}
|
||||
if (offset + count > object.props.objectIds.length) {
|
||||
throw new OneNoteParserError(
|
||||
'MISSING_REFERENCE',
|
||||
|
||||
Reference in New Issue
Block a user