1
0
Fork 0
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:
Tim van der Meij 2022-04-16 12:36:44 +02:00 committed by GitHub
commit b73a6cc213
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 14 deletions

View file

@ -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(() => {