remove debug asserts causing test failures

we encountered a fence constructed in the middle of a field for an unknown
reason so we demolished it. i think this was intended to catch flaws in the
parser logic but the reality is in a pdf anything can happen so we no longer
want to catch these issues and this restores a green test run in debug mode.

fix for #915
This commit is contained in:
EliotJones 2025-07-20 11:08:07 -05:00 committed by BobLd
parent efb8c2a803
commit 2b11961c8c

View File

@ -164,8 +164,6 @@
return true;
}
// This should never happen.
Debug.Assert(false, "Encountered a start object 'obj' operator before the end of the previous object.");
return false;
}
@ -191,9 +189,7 @@
return true;
}
// This should never happen.
Debug.Assert(false, $"Encountered a '{coreTokenScanner.CurrentToken}' operator before the end of the previous object.");
return false;
}