Fix check for instanceof Uint8Array in IE9

Fix #2687 and #2617
This commit is contained in:
benbro 2013-06-05 03:12:30 +03:00
parent 2dc062e183
commit fc7c1fb6fd

View File

@ -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);