pdf.js/src/display
Jonas Jenwald 6167566f1b Re-factor the BaseException.name handling, and clean-up some code
Once we're finally able to get rid of SystemJS, which is unfortunately still blocked on [bug 1247687](https://bugzilla.mozilla.org/show_bug.cgi?id=1247687), we might also want to clean-up (or even completely remove) the `BaseException` abstraction and simply extend `Error` directly instead.

At that point we'd need to (explicitly) set the `name` on each class anyway, so this patch is essentially preparing for future clean-up. Furthermore, after the `BaseException` abstraction was added there's been *multiple* issues filed about third-party minification breaking our code since `this.constructor.name` is not guaranteed to always do what you intended.

While hard-coding the strings indeed feels quite unfortunate, it's likely the "best" solution to avoid the problem described above.
2021-08-10 11:27:47 +02:00
..
annotation_layer.js Annotation & XFA: Add focus outlines on different fields (bug 1723615, bug 1718528) 2021-08-05 13:33:46 +02:00
annotation_storage.js Remove the deprecated AnnotationStorage.getOrCreateValue-method (PR 12759 follow-up) 2021-04-06 13:22:06 +02:00
api.js Re-factor the BaseException.name handling, and clean-up some code 2021-08-10 11:27:47 +02:00
base_factory.js Re-factor the DOMSVGFactory to extend an abstract base class 2021-06-11 17:15:49 +02:00
canvas.js Improve caching of shading patterns. (bug 1721949) 2021-07-28 10:29:20 -07:00
content_disposition.js Use the stringToBytes helper function in more places 2021-05-22 12:23:09 +02:00
display_utils.js Re-factor the BaseException.name handling, and clean-up some code 2021-08-10 11:27:47 +02:00
fetch_stream.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
font_loader.js XFA - Add support for reftests 2021-06-08 10:37:26 +02:00
metadata.js Replace the objectFromEntries helper function with an objectFromMap one instead 2021-03-11 16:37:34 +01:00
network_utils.js [api-minor] Support the Content-Disposition filename in the Firefox PDF Viewer (bug 1694556, PR 9379 follow-up) 2021-02-26 10:50:29 +01:00
network.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
node_stream.js Account for formatting changes in Prettier version 2.3.0 2021-05-16 11:44:05 +02:00
node_utils.js Move most functionality in the create methods into the BaseCanvasFactory 2021-06-11 17:15:47 +02:00
optional_content_config.js Prevent breaking errors when an optional content group is undefined (issue 13851) 2021-08-03 15:59:29 +02:00
pattern_helper.js Improve caching of shading patterns. (bug 1721949) 2021-07-28 10:29:20 -07:00
svg.js Normalize the coordinates used in SVGGraphics._makeTilingPattern (issue 12996) 2021-06-05 09:15:23 +02:00
text_layer.js Prevent "Uncaught promise" messages in the console when cancelling (some) ReadableStreams 2021-07-30 14:27:38 +02:00
transport_stream.js Clear some Arrays, rather than re-initialize them, in src/display/-code 2021-04-24 13:00:53 +02:00
worker_options.js Use typedef to define the type of GlobalWorkerOptions. 2020-08-03 19:06:28 +09:00
xfa_layer.js XFA - Checkboxes must be printed (bug 1720182) 2021-07-16 11:32:03 +02:00