Merge pull request #19057 from Snuffleupagus/extendCMap-avoid-lookup

Avoid redundant CMap-value lookup in `extendCMap` (PR 5101 follow-up)
This commit is contained in:
Jonas Jenwald 2024-11-17 12:49:20 +01:00 committed by GitHub
commit 823e700b3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -662,7 +662,7 @@ async function extendCMap(cMap, fetchBuiltInCMap, useCMap) {
// any previously defined entries.
cMap.useCMap.forEach(function (key, value) {
if (!cMap.contains(key)) {
cMap.mapOne(key, cMap.useCMap.lookup(key));
cMap.mapOne(key, value);
}
});