1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Don't use 'in' operator to check if key is in a Map

This commit is contained in:
Calixte Denizet 2020-12-16 16:00:12 +01:00
parent 3c603fb28b
commit 03814bd6a2
2 changed files with 5 additions and 3 deletions

View file

@ -965,7 +965,7 @@ class PDFDocument {
}
}
if (!(name in promises)) {
if (!promises.has(name)) {
promises.set(name, []);
}
promises.get(name).push(