Remove LoopbackPort.postMessage special-case for polyfilled TypedArrays

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:
Jonas Jenwald 2020-02-13 12:46:29 +01:00
parent 993a1d7825
commit a5db4e985a

@ -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,