From d3723cec95c0005a9c61d0b2acb20e7bec1be8c3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 30 Jun 2023 07:29:45 +0200 Subject: [PATCH] Remove outdated polyfill comment from `src/pdf.image_decoders.js` Given that none of the mentioned polyfills are used any more, the comment is no longer helpful. --- src/pdf.image_decoders.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/pdf.image_decoders.js b/src/pdf.image_decoders.js index ad54336f6..74c473db3 100644 --- a/src/pdf.image_decoders.js +++ b/src/pdf.image_decoders.js @@ -18,20 +18,6 @@ import { Jbig2Image } from "./core/jbig2.js"; import { JpegImage } from "./core/jpg.js"; import { JpxImage } from "./core/jpx.js"; -// To ensure that the standalone PDF.js image decoders have the same -// browser/environment compatibility as the regular PDF.js library, -// the standard set of polyfills are thus included in this build as well. -// -// Given that the (current) image decoders don't use all of the features -// of the complete PDF.js library, e.g. they are completely synchronous, -// some of the larger polyfills are thus unnecessary. -// -// In an attempt to reduce the size of the standalone PDF.js image decoders, -// the following polyfills are currently being excluded: -// - ReadableStream -// - Promise -// - URL - // eslint-disable-next-line no-unused-vars const pdfjsVersion = PDFJSDev.eval("BUNDLE_VERSION"); // eslint-disable-next-line no-unused-vars