Merge pull request #11947 from Snuffleupagus/GlobalImageCache-assert-not-inline

Ensure that that we don't attempt to cache *inline* images in the `GlobalImageCache` (PR 11912 follow-up)
This commit is contained in:
Tim van der Meij 2020-06-01 11:39:40 +02:00 committed by GitHub
commit 0974d60523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -605,6 +605,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
});
if (imageRef) {
assert(!isInline, "Cannot cache an inline image globally.");
this.globalImageCache.addPageIndex(imageRef, this.pageIndex);
if (cacheGlobally) {