mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Remove LoopbackPort.postMessage
special-case for polyfilled TypedArray
s
Given that all `TypedArray` polyfills were removed in PDF.js version `2.0`, since native support is now required, this branch has been dead code for awhile.
This commit is contained in:
parent
993a1d7825
commit
a5db4e985a
1 changed files with 1 additions and 4 deletions
|
@ -1492,10 +1492,7 @@ class LoopbackPort {
|
|||
if ((buffer = value.buffer) && isArrayBuffer(buffer)) {
|
||||
// We found object with ArrayBuffer (typed array).
|
||||
const transferable = transfers && transfers.includes(buffer);
|
||||
if (value === buffer) {
|
||||
// Special case when we are faking typed arrays in compatibility.js.
|
||||
result = value;
|
||||
} else if (transferable) {
|
||||
if (transferable) {
|
||||
result = new value.constructor(
|
||||
buffer,
|
||||
value.byteOffset,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue