Update checked-in dependencies
This commit is contained in:
parent
1afca056e3
commit
6989ba7bd2
3942 changed files with 55190 additions and 132206 deletions
10
node_modules/es-abstract/2020/AsyncIteratorClose.js
generated
vendored
10
node_modules/es-abstract/2020/AsyncIteratorClose.js
generated
vendored
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
||||
var $TypeError = GetIntrinsic('%TypeError%');
|
||||
var $SyntaxError = require('es-errors/syntax');
|
||||
var $TypeError = require('es-errors/type');
|
||||
var $Promise = GetIntrinsic('%Promise%', true);
|
||||
|
||||
var Call = require('./Call');
|
||||
|
|
@ -11,7 +11,7 @@ var CompletionRecord = require('./CompletionRecord');
|
|||
var GetMethod = require('./GetMethod');
|
||||
var Type = require('./Type');
|
||||
|
||||
var assertRecord = require('../helpers/assertRecord');
|
||||
var isIteratorRecord = require('../helpers/records/iterator-record');
|
||||
|
||||
var callBound = require('call-bind/callBound');
|
||||
|
||||
|
|
@ -20,7 +20,9 @@ var $then = callBound('Promise.prototype.then', true);
|
|||
// https://262.ecma-international.org/9.0/#sec-asynciteratorclose
|
||||
|
||||
module.exports = function AsyncIteratorClose(iteratorRecord, completion) {
|
||||
assertRecord(Type, 'Iterator Record', 'iteratorRecord', iteratorRecord); // step 1
|
||||
if (!isIteratorRecord(iteratorRecord)) {
|
||||
throw new $TypeError('Assertion failed: `iteratorRecord` must be an Iterator Record'); // step 1
|
||||
}
|
||||
|
||||
if (!(completion instanceof CompletionRecord)) {
|
||||
throw new $TypeError('Assertion failed: completion is not a Completion Record instance'); // step 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue