mirror of
https://github.com/github/codeql-action
synced 2026-05-29 05:00:55 +03:00
Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
+7
-1
@@ -3,5 +3,11 @@
|
||||
var implementation = require('./implementation');
|
||||
|
||||
module.exports = function getPolyfill() {
|
||||
return Array.prototype.includes || implementation;
|
||||
if (
|
||||
Array.prototype.includes
|
||||
&& Array(1).includes(undefined) // https://bugzilla.mozilla.org/show_bug.cgi?id=1767541
|
||||
) {
|
||||
return Array.prototype.includes;
|
||||
}
|
||||
return implementation;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user