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:
parent
3c603fb28b
commit
03814bd6a2
2 changed files with 5 additions and 3 deletions
|
@ -965,7 +965,7 @@ class PDFDocument {
|
|||
}
|
||||
}
|
||||
|
||||
if (!(name in promises)) {
|
||||
if (!promises.has(name)) {
|
||||
promises.set(name, []);
|
||||
}
|
||||
promises.get(name).push(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue