Remove Array.prototype.includes polyfill (#24234)

pull/59/head
Nick Schonning 2023-04-07 07:03:42 -04:00 committed by GitHub
parent d7b8c6db7e
commit c0886dee14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 7 deletions

View File

@ -1,16 +1,11 @@
import 'intl'; import 'intl';
import 'intl/locale-data/jsonp/en'; import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement'; import 'es6-symbol/implement';
import includes from 'array-includes';
import assign from 'object-assign'; import assign from 'object-assign';
import values from 'object.values'; import values from 'object.values';
import { decode as decodeBase64 } from './utils/base64'; import { decode as decodeBase64 } from './utils/base64';
import promiseFinally from 'promise.prototype.finally'; import promiseFinally from 'promise.prototype.finally';
if (!Array.prototype.includes) {
includes.shim();
}
if (!Object.assign) { if (!Object.assign) {
Object.assign = assign; Object.assign = assign;
} }

View File

@ -12,7 +12,6 @@ function importExtraPolyfills() {
function loadPolyfills() { function loadPolyfills() {
const needsBasePolyfills = !( const needsBasePolyfills = !(
Array.prototype.includes &&
HTMLCanvasElement.prototype.toBlob && HTMLCanvasElement.prototype.toBlob &&
window.Intl && window.Intl &&
Object.assign && Object.assign &&

View File

@ -38,7 +38,6 @@
"@github/webauthn-json": "^2.1.1", "@github/webauthn-json": "^2.1.1",
"@rails/ujs": "^6.1.7", "@rails/ujs": "^6.1.7",
"abortcontroller-polyfill": "^1.7.5", "abortcontroller-polyfill": "^1.7.5",
"array-includes": "^3.1.6",
"arrow-key-navigation": "^1.2.0", "arrow-key-navigation": "^1.2.0",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"axios": "^1.3.4", "axios": "^1.3.4",