mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Enable the prefer-exponentiation-operator
ESLint rule
Please see https://eslint.org/docs/rules/prefer-exponentiation-operator for additional information.
This commit is contained in:
parent
c3f4690bde
commit
e011be037e
6 changed files with 16 additions and 15 deletions
|
@ -948,7 +948,7 @@ class Lexer {
|
|||
baseValue /= divideBy;
|
||||
}
|
||||
if (eNotation) {
|
||||
baseValue *= Math.pow(10, powerValueSign * powerValue);
|
||||
baseValue *= 10 ** (powerValueSign * powerValue);
|
||||
}
|
||||
return sign * baseValue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue