mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #14785 from Snuffleupagus/core-js-structuredClone-transfers
Update `core-js` to allow removing a `structuredClone` work-around
This commit is contained in:
commit
b73a6cc213
3 changed files with 9 additions and 14 deletions
|
@ -1935,12 +1935,7 @@ class LoopbackPort {
|
|||
|
||||
postMessage(obj, transfers) {
|
||||
const event = {
|
||||
data:
|
||||
typeof PDFJSDev === "undefined" ||
|
||||
PDFJSDev.test("SKIP_BABEL") ||
|
||||
transfers
|
||||
? structuredClone(obj, transfers)
|
||||
: structuredClone(obj),
|
||||
data: structuredClone(obj, transfers),
|
||||
};
|
||||
|
||||
this._deferred.then(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue