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
6
node_modules/es-abstract/2020/GetIterator.js
generated
vendored
6
node_modules/es-abstract/2020/GetIterator.js
generated
vendored
|
|
@ -3,6 +3,7 @@
|
|||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
var $asyncIterator = GetIntrinsic('%Symbol.asyncIterator%', true);
|
||||
|
||||
var inspect = require('object-inspect');
|
||||
|
|
@ -32,15 +33,14 @@ module.exports = function GetIterator(obj, hint, method) {
|
|||
actualMethod = GetMethod(obj, $asyncIterator);
|
||||
}
|
||||
if (actualMethod === undefined) {
|
||||
throw new $TypeError("async from sync iterators aren't currently supported");
|
||||
throw new $SyntaxError("async from sync iterators aren't currently supported");
|
||||
}
|
||||
} else {
|
||||
actualMethod = getIteratorMethod(
|
||||
{
|
||||
AdvanceStringIndex: AdvanceStringIndex,
|
||||
GetMethod: GetMethod,
|
||||
IsArray: IsArray,
|
||||
Type: Type
|
||||
IsArray: IsArray
|
||||
},
|
||||
obj
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue