Skip to content

Commit

Permalink
Revert "[api-minor] Update the minimum supported Google Chrome versio…
Browse files Browse the repository at this point in the history
…n to 92"

This reverts commit c60a3ce.

... to support for Chrome 88+.
  • Loading branch information
Rob--W committed Jul 9, 2023
1 parent 35202ec commit 47b6bbf
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions src/shared/compatibility.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 47b6bbf

Please sign in to comment.