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

Merge pull request #17718 from Snuffleupagus/hexNumbers-tweak

Tweak how the `hexNumbers` Array, used by `Util.makeHexColor`, is built
This commit is contained in:
Jonas Jenwald 2024-02-23 18:17:10 +01:00 committed by GitHub
commit 346efe919a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -641,7 +641,7 @@ class FeatureTest {
}
}
const hexNumbers = [...Array(256).keys()].map(n =>
const hexNumbers = Array.from(Array(256).keys(), n =>
n.toString(16).padStart(2, "0")
);