mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-23 08:38:06 +02:00
Merge pull request #10404 from Snuffleupagus/issue-10401
Remove the `for ... of` loop from the `PDFDocument.fingerprint` getter (issue 10401)
This commit is contained in:
commit
2d00bb098b
1 changed files with 2 additions and 2 deletions
|
@ -600,8 +600,8 @@ class PDFDocument {
|
|||
}
|
||||
|
||||
let fingerprint = '';
|
||||
for (const hashPart of hash) {
|
||||
const hex = hashPart.toString(16);
|
||||
for (let i = 0, ii = hash.length; i < ii; i++) {
|
||||
const hex = hash[i].toString(16);
|
||||
fingerprint += (hex.length === 1 ? '0' + hex : hex);
|
||||
}
|
||||
return shadow(this, 'fingerprint', fingerprint);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue