Relaxes murmurhash array requirement.

This commit is contained in:
Yury Delendik 2014-04-10 07:55:08 -05:00
parent 82e6018826
commit 791c9a7b13
2 changed files with 17 additions and 8 deletions

View file

@ -465,10 +465,10 @@ Object.defineProperty(PDFJS, 'hasCanvasTypedArrays', {
var Uint32ArrayView = (function Uint32ArrayViewClosure() {
function Uint32ArrayView(buffer) {
function Uint32ArrayView(buffer, length) {
this.buffer = buffer;
this.byteLength = buffer.length;
this.length = (this.byteLength >> 2);
this.length = length === undefined ? (this.byteLength >> 2) : length;
ensureUint32ArrayViewProps(this.length);
}
Uint32ArrayView.prototype = Object.create(null);