mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 03:21:02 +08:00
DEV: Skip ESLint on polyfill
This commit is contained in:
parent
af84949f25
commit
e955a1f24b
|
@ -43,6 +43,7 @@ if (typeof Object.assign !== 'function') {
|
|||
}
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes#Polyfill
|
||||
/* eslint-disable */
|
||||
if (!Array.prototype.includes) {
|
||||
Object.defineProperty(Array.prototype, 'includes', {
|
||||
value: function(searchElement, fromIndex) {
|
||||
|
@ -92,4 +93,5 @@ if (!Array.prototype.includes) {
|
|||
return false;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
/* eslint-enable */
|
||||
|
|
Loading…
Reference in New Issue
Block a user