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:
parent
bd67f7841f
commit
9660ca53af
4 changed files with 18 additions and 26 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue