From 48985bd2218388c74984ade30b6cf82eb1d615da Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Tue, 22 Feb 2022 12:30:54 +0100 Subject: [PATCH] Update the support information for `structuredClone` (PR 14392 follow-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 --- src/shared/compatibility.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index 6da5c4751..24343a0cc 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -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`