Merge pull request #16543 from Snuffleupagus/limit-more-to-GENERIC

Limit more code to GENERIC builds
This commit is contained in:
Jonas Jenwald 2023-06-15 13:58:52 +02:00 committed by GitHub
commit a37f7d2477
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1614 additions and 1640 deletions

View file

@ -1552,6 +1552,9 @@ class PDFPageProxy {
annotationMode = AnnotationMode.ENABLE,
printAnnotationStorage = null,
} = {}) {
if (typeof PDFJSDev !== "undefined" && !PDFJSDev.test("GENERIC")) {
throw new Error("Not implemented: getOperatorList");
}
function operatorListChanged() {
if (intentState.operatorList.lastChunk) {
intentState.opListReadCapability.resolve(intentState.operatorList);