Attach (recommended) or Link to PDF file here:
See pdf in https://github.com/mozilla/pdf.js/issues/3109

Configuration:
- Web browser and its version: Firefox nightly
- Operating system and its version: Windows 10
- PDF.js version: builtin viewer

Steps to reproduce the problem:
1. Look at outlines

What is the expected behavior? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/141514798-0e656865-1cbf-4fb8-a89b-530d36da23c9.png)

What went wrong? (add screenshot)
![image](https://user-images.githubusercontent.com/5641725/141514740-c95e0237-8bf4-4129-a4a5-cb2ea5a3f4df.png)

const pageIndex = await pdfDocument.getPageIndex(ref);
      expect(pageIndex).toEqual(1);
    });
    it("gets invalid page index", async function () {
      const ref = { num: 3, gen: 0 }; 
      try {
        await pdfDocument.getPageIndex(ref);
        
        expect(false).toEqual(true);
      
        expect(reason instanceof Error).toEqual(true);
      }
    });
    it("gets destinations, from /Dests dictionary", async function () {
      const destinations = await pdfDocument.getDestinations();
      expect(destinations).toEqual({
        chapter1: [{ gen: 0, num: 17  { name: "XYZ"  0, 841.89, null],
      });
    });
    it("gets a destination, from /Dests dictionary", async function () {
      const destination = await pdfDocument.getDestination("chapter1");
      expect(destination).toEqual([
        { gen: 0, num: 17 
        { name: "XYZ" 
        0,
        841.89,
        null,
      ]);
    });
    it("gets a non-existent destination, from /Dests dictionary", async function () {