make codeLenCodeMap a typed array

This commit is contained in:
Andreas Gal 2011-06-04 10:14:17 -07:00
parent fadbb1b5e7
commit cd7c229ccc

4
pdf.js
View File

@ -112,9 +112,9 @@ var StringStream = (function() {
})();
var FlateStream = (function() {
const codeLenCodeMap = [
const codeLenCodeMap = new Uint32Array([
16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15
];
]);
const lengthDecode = [
[0, 3],