diff --git a/src/colorspace.js b/src/colorspace.js index a5c426455..41480683f 100644 --- a/src/colorspace.js +++ b/src/colorspace.js @@ -393,7 +393,7 @@ var IndexedCS = (function IndexedCSClosure() { lookupArray = new Uint8Array(length); for (var i = 0; i < length; ++i) lookupArray[i] = lookup.charCodeAt(i); - } else if (lookup instanceof Uint8Array) { + } else if (lookup instanceof Uint8Array || lookup instanceof Array) { lookupArray = lookup; } else { error('Unrecognized lookup table: ' + lookup);