mirror of
https://github.com/mozilla/pdf.js.git
synced 2026-07-26 08:57:21 +02:00
Part of this is very old code, hence modernizing it a little bit more really shouldn't hurt. This patch also shortens some `XRef` code by using nullish coalescing assignment respectively ternary operators more. Finally, adds the recently introduced `countUpdatesAfter` method to the `XRefMock`/`XRefWrapper` classes to avoid having to check for its existence.