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

Enable more ESLint unicorn plugin rules

- `prefer-array-some`, which didn't require any code changes; please find additional details at https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-array-some.md

 - `prefer-modern-math-apis`, which should be fine given the currently supported browsers; please find additional details at https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-modern-math-apis.md
This commit is contained in:
Jonas Jenwald 2023-07-16 09:24:14 +02:00
parent bd67f7841f
commit 9660ca53af
4 changed files with 18 additions and 26 deletions

View file

@ -718,7 +718,7 @@ class PostScriptEvaluator {
break;
case "log":
a = stack.pop();
stack.push(Math.log(a) / Math.LN10);
stack.push(Math.log10(a));
break;
case "lt":
b = stack.pop();