Merge pull request #15008 from Snuffleupagus/Array-at

Polyfill `Array.prototype.at` with core-js (PR 14976 follow-up)
This commit is contained in:
Jonas Jenwald 2022-06-08 22:26:08 +02:00 committed by GitHub
commit 14e6d8a802
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,6 +80,14 @@ if (
).ReadableStream; ).ReadableStream;
})(); })();
// Support: Firefox<90, Chrome<92, Safari<15.4, Node.js<16.6.0
(function checkArrayAt() {
if (Array.prototype.at) {
return;
}
require("core-js/es/array/at.js");
})();
// Support: Firefox<94, Chrome<98, Safari<15.4, Node.js<17.0.0 // Support: Firefox<94, Chrome<98, Safari<15.4, Node.js<17.0.0
(function checkStructuredClone() { (function checkStructuredClone() {
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) { if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("IMAGE_DECODERS")) {