6167566f1b
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. |
||
---|---|---|
.. | ||
annotation_layer.js | ||
annotation_storage.js | ||
api.js | ||
base_factory.js | ||
canvas.js | ||
content_disposition.js | ||
display_utils.js | ||
fetch_stream.js | ||
font_loader.js | ||
metadata.js | ||
network_utils.js | ||
network.js | ||
node_stream.js | ||
node_utils.js | ||
optional_content_config.js | ||
pattern_helper.js | ||
svg.js | ||
text_layer.js | ||
transport_stream.js | ||
worker_options.js | ||
xfa_layer.js |