Merge pull request #19278 from Snuffleupagus/more-Dict-iteration
Use `Dict` iteration more (PR 19051 follow-up)
This commit is contained in:
commit
3e822399d8
@ -923,8 +923,7 @@ class Catalog {
|
|||||||
}
|
}
|
||||||
let prefs = null;
|
let prefs = null;
|
||||||
|
|
||||||
for (const key of obj.getKeys()) {
|
for (const [key, value] of obj) {
|
||||||
const value = obj.get(key);
|
|
||||||
let prefValue;
|
let prefValue;
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
|
|||||||
@ -1472,9 +1472,7 @@ class PDFDocument {
|
|||||||
return shadow(this, "documentInfo", docInfo);
|
return shadow(this, "documentInfo", docInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const key of infoDict.getKeys()) {
|
for (const [key, value] of infoDict) {
|
||||||
const value = infoDict.get(key);
|
|
||||||
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "Title":
|
case "Title":
|
||||||
case "Author":
|
case "Author":
|
||||||
|
|||||||
@ -1133,8 +1133,7 @@ class PartialEvaluator {
|
|||||||
// This array holds the converted/processed state data.
|
// This array holds the converted/processed state data.
|
||||||
const gStateObj = [];
|
const gStateObj = [];
|
||||||
let promise = Promise.resolve();
|
let promise = Promise.resolve();
|
||||||
for (const key of gState.getKeys()) {
|
for (const [key, value] of gState) {
|
||||||
const value = gState.get(key);
|
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "Type":
|
case "Type":
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user