Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Commit

Permalink
Remove Array.prototype.includes polyfill (mastodon#24234)
Browse files Browse the repository at this point in the history
  • Loading branch information
nschonni authored Apr 7, 2023
1 parent d7b8c6d commit c0886de
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions app/javascript/mastodon/base_polyfills.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
import 'intl';
import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement';
import includes from 'array-includes';
import assign from 'object-assign';
import values from 'object.values';
import { decode as decodeBase64 } from './utils/base64';
import promiseFinally from 'promise.prototype.finally';

if (!Array.prototype.includes) {
includes.shim();
}

if (!Object.assign) {
Object.assign = assign;
}
Expand Down
1 change: 0 additions & 1 deletion app/javascript/mastodon/load_polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ function importExtraPolyfills() {

function loadPolyfills() {
const needsBasePolyfills = !(
Array.prototype.includes &&
HTMLCanvasElement.prototype.toBlob &&
window.Intl &&
Object.assign &&
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"@github/webauthn-json": "^2.1.1",
"@rails/ujs": "^6.1.7",
"abortcontroller-polyfill": "^1.7.5",
"array-includes": "^3.1.6",
"arrow-key-navigation": "^1.2.0",
"autoprefixer": "^10.4.14",
"axios": "^1.3.4",
Expand Down

0 comments on commit c0886de

Please sign in to comment.