Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
23
node_modules/es-abstract/2017/ArrayCreate.js
generated
vendored
23
node_modules/es-abstract/2017/ArrayCreate.js
generated
vendored
|
|
@ -9,16 +9,17 @@ var $TypeError = GetIntrinsic('%TypeError%');
|
|||
|
||||
var IsInteger = require('./IsInteger');
|
||||
|
||||
var hasProto = require('has-proto')();
|
||||
|
||||
var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
|
||||
|
||||
var $setProto = GetIntrinsic('%Object.setPrototypeOf%', true) || (
|
||||
// eslint-disable-next-line no-proto, no-negated-condition
|
||||
[].__proto__ !== $ArrayPrototype
|
||||
? null
|
||||
: function (O, proto) {
|
||||
hasProto
|
||||
? function (O, proto) {
|
||||
O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
|
||||
return O;
|
||||
}
|
||||
: null
|
||||
);
|
||||
|
||||
// https://ecma-international.org/ecma-262/6.0/#sec-arraycreate
|
||||
|
|
@ -42,12 +43,12 @@ module.exports = function ArrayCreate(length) {
|
|||
A.length = length;
|
||||
}
|
||||
/* step 10, the above as a shortcut for the below
|
||||
OrdinaryDefineOwnProperty(A, 'length', {
|
||||
'[[Configurable]]': false,
|
||||
'[[Enumerable]]': false,
|
||||
'[[Value]]': length,
|
||||
'[[Writable]]': true
|
||||
});
|
||||
*/
|
||||
OrdinaryDefineOwnProperty(A, 'length', {
|
||||
'[[Configurable]]': false,
|
||||
'[[Enumerable]]': false,
|
||||
'[[Value]]': length,
|
||||
'[[Writable]]': true
|
||||
});
|
||||
*/
|
||||
return A;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue