Use await consistently in the PartialEvaluator.setGState method

This commit is contained in:
Jonas Jenwald 2024-01-22 12:17:20 +01:00
parent 1cc83c4fdc
commit cf0797dfbd

View File

@ -1188,7 +1188,8 @@ class PartialEvaluator {
break;
}
}
return promise.then(function () {
await promise;
if (gStateObj.length > 0) {
operatorList.addOp(OPS.setGState, [gStateObj]);
}
@ -1196,7 +1197,6 @@ class PartialEvaluator {
if (isSimpleGState) {
localGStateCache.set(cacheKey, gStateRef, gStateObj);
}
});
}
loadFont(