mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Relaxes murmurhash array requirement.
This commit is contained in:
parent
82e6018826
commit
791c9a7b13
2 changed files with 17 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue