diff --git a/src/display/api.js b/src/display/api.js
index 46ceef1ac..e697f7bcf 100644
--- a/src/display/api.js
+++ b/src/display/api.js
@@ -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);