mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #11593 from Snuffleupagus/LoopbackPort-postMessage-compatibility
Remove `LoopbackPort.postMessage` special-case for polyfilled `TypedArray`s
This commit is contained in:
commit
12400489c2
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