mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Enable the ESLint prefer-spread
rule
Note that in a couple of spots the argument could be `undefined` and there we simply disable the rule instead. Please refer to https://eslint.org/docs/latest/rules/prefer-spread
This commit is contained in:
parent
d6d4653d80
commit
f6db7975c5
9 changed files with 37 additions and 34 deletions
|
@ -3717,7 +3717,7 @@ class PartialEvaluator {
|
|||
const w2 = (token.charCodeAt(k) << 8) | token.charCodeAt(k + 1);
|
||||
str.push(((w1 & 0x3ff) << 10) + (w2 & 0x3ff) + 0x10000);
|
||||
}
|
||||
map[charCode] = String.fromCodePoint.apply(String, str);
|
||||
map[charCode] = String.fromCodePoint(...str);
|
||||
});
|
||||
return new ToUnicodeMap(map);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue