mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 09:38:06 +02:00
Replace the isArray
helper function with the native Array.isArray
function
*Follow-up to PR 8813.*
This commit is contained in:
parent
22ade754cc
commit
cfb4955a92
17 changed files with 77 additions and 87 deletions
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
createObjectURL, FormatError, info, isArray, isSpace, shadow, Util
|
||||
createObjectURL, FormatError, info, isSpace, shadow, Util
|
||||
} from '../shared/util';
|
||||
import { Dict, isDict, isStream } from './primitives';
|
||||
import { Jbig2Image } from './jbig2';
|
||||
|
@ -907,7 +907,7 @@ var JpegStream = (function JpegStreamClosure() {
|
|||
|
||||
// Checking if values need to be transformed before conversion.
|
||||
var decodeArr = this.dict.getArray('Decode', 'D');
|
||||
if (this.forceRGB && isArray(decodeArr)) {
|
||||
if (this.forceRGB && Array.isArray(decodeArr)) {
|
||||
var bitsPerComponent = this.dict.get('BitsPerComponent') || 8;
|
||||
var decodeArrLength = decodeArr.length;
|
||||
var transform = new Int32Array(decodeArrLength);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue