mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Enable unicorn/prefer-at
unconditionally (PR 15014 follow-up)
Now that Node.js version 18 is required, we should be able to use `Array.prototype.at()` everywhere in the code-base.
This commit is contained in:
parent
f79f48c2b4
commit
dcd55a7164
6 changed files with 7 additions and 16 deletions
2
external/cmapscompress/compress.js
vendored
2
external/cmapscompress/compress.js
vendored
|
@ -215,7 +215,7 @@ function parseCMap(binaryData) {
|
|||
},
|
||||
readHexSigned(size) {
|
||||
const num = this.readHexNumber(size);
|
||||
const sign = fromHexDigit(num[num.length - 1]) & 1 ? 15 : 0;
|
||||
const sign = fromHexDigit(num.at(-1)) & 1 ? 15 : 0;
|
||||
let c = 0;
|
||||
let result = "";
|
||||
for (const digit of num) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue