mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Replace the isInt
helper function with the native Number.isInteger
function
*Follow-up to PR 8643.*
This commit is contained in:
parent
066fea9c8b
commit
11408da340
12 changed files with 65 additions and 72 deletions
|
@ -15,8 +15,7 @@
|
|||
|
||||
import {
|
||||
bytesToString, FONT_IDENTITY_MATRIX, FontType, FormatError, info, isArray,
|
||||
isInt, isNum, isSpace, MissingDataException, readUint32, shadow, string32,
|
||||
warn
|
||||
isNum, isSpace, MissingDataException, readUint32, shadow, string32, warn
|
||||
} from '../shared/util';
|
||||
import {
|
||||
CFF, CFFCharset, CFFCompiler, CFFHeader, CFFIndex, CFFParser, CFFPrivateDict,
|
||||
|
@ -291,7 +290,8 @@ var IdentityToUnicodeMap = (function IdentityToUnicodeMapClosure() {
|
|||
},
|
||||
|
||||
charCodeOf(v) {
|
||||
return (isInt(v) && v >= this.firstChar && v <= this.lastChar) ? v : -1;
|
||||
return (Number.isInteger(v) &&
|
||||
v >= this.firstChar && v <= this.lastChar) ? v : -1;
|
||||
},
|
||||
|
||||
amend(map) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue