mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Fix typed array assignment in the |constructPostScriptFromIRResult| function (issue 5470)
This commit is contained in:
parent
308646d5f1
commit
1abad5f290
1 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ var PDFFunction = (function PDFFunctionClosure() {
|
||||||
|
|
||||||
var cachedValue = cache[key];
|
var cachedValue = cache[key];
|
||||||
if (cachedValue !== undefined) {
|
if (cachedValue !== undefined) {
|
||||||
cachedValue.set(dest, destOffset);
|
dest.set(cachedValue, destOffset);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -457,7 +457,7 @@ var PDFFunction = (function PDFFunctionClosure() {
|
||||||
cache_available--;
|
cache_available--;
|
||||||
cache[key] = output;
|
cache[key] = output;
|
||||||
}
|
}
|
||||||
output.set(dest, destOffset);
|
dest.set(output, destOffset);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue