diff --git a/gulpfile.js b/gulpfile.js index fdbdd0d2aa56c..b2fb172a52bc4 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -77,7 +77,7 @@ const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString()); const ENV_TARGETS = [ "last 2 versions", - "Chrome >= 92", + "Chrome >= 88", "Firefox ESR", "Safari >= 15.4", "Node >= 18", diff --git a/src/shared/compatibility.js b/src/shared/compatibility.js index 346024f770374..641cc431e4330 100644 --- a/src/shared/compatibility.js +++ b/src/shared/compatibility.js @@ -36,6 +36,22 @@ import { isNodeJS } from "./is_node.js"; polyfillPath2D(globalThis); })(); +// Support: Chrome<92 +(function checkArrayAt() { + if (Array.prototype.at) { + return; + } + require("core-js/es/array/at.js"); +})(); + +// Support: Chrome<92 +(function checkTypedArrayAt() { + if (Uint8Array.prototype.at) { + return; + } + require("core-js/es/typed-array/at.js"); +})(); + // Support: Chrome<98 (function checkStructuredClone() { if (globalThis.structuredClone) {