1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 10:08:06 +02:00

Replace the isArray helper function with the native Array.isArray function

*Follow-up to PR 8813.*
This commit is contained in:
Jonas Jenwald 2017-09-01 20:27:13 +02:00
parent 22ade754cc
commit cfb4955a92
17 changed files with 77 additions and 87 deletions

View file

@ -14,8 +14,8 @@
*/
import {
bytesToString, FONT_IDENTITY_MATRIX, FontType, FormatError, info, isArray,
isNum, isSpace, MissingDataException, readUint32, shadow, string32, warn
bytesToString, FONT_IDENTITY_MATRIX, FontType, FormatError, info, isNum,
isSpace, MissingDataException, readUint32, shadow, string32, warn
} from '../shared/util';
import {
CFF, CFFCharset, CFFCompiler, CFFHeader, CFFIndex, CFFParser, CFFPrivateDict,
@ -3250,7 +3250,7 @@ var Type1Font = (function Type1FontClosure() {
continue;
}
var value = properties.privateData[field];
if (isArray(value)) {
if (Array.isArray(value)) {
// All of the private dictionary array data in CFF must be stored as
// "delta-encoded" numbers.
for (var j = value.length - 1; j > 0; j--) {