Skip to content

Commit

Permalink
Update the support information for structuredClone (PR 14392 follow…
Browse files Browse the repository at this point in the history
…-up)

When the `structuredClone` polyfill was added, the support information in Safari was unclear. Given that an actual version *number* is now available, see below, it seems like a good idea to update the comment accordingly.

https://developer.mozilla.org/en-US/docs/Web/API/structuredClone#browser_compatibility
  • Loading branch information
Snuffleupagus committed Feb 22, 2022
1 parent edd024c commit 48985bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ if (
).ReadableStream;
})();

// Support: Firefox<94, Chrome<98, Safari, Node.js<17.0.0
// Support: Firefox<94, Chrome<98, Safari<15.4, Node.js<17.0.0
(function checkStructuredClone() {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {
// The current image decoders are synchronous, hence `structuredClone`
Expand Down

0 comments on commit 48985bd

Please # to comment.