Skip to content

Commit

Permalink
[Deps] update es-abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Mar 15, 2024
1 parent 6350106 commit 6b45f15
Show file tree
Hide file tree
Showing 22 changed files with 105 additions and 104 deletions.
4 changes: 2 additions & 2 deletions Iterator.from/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
var $TypeError = require('es-errors/type');

var GetIteratorFlattenable = require('../aos/GetIteratorFlattenable');
var OrdinaryHasInstance = require('es-abstract/2023/OrdinaryHasInstance');
var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate');
var OrdinaryHasInstance = require('es-abstract/2024/OrdinaryHasInstance');
var OrdinaryObjectCreate = require('es-abstract/2024/OrdinaryObjectCreate');

var $Iterator = require('../Iterator/polyfill')();
var $WrapForValidIteratorPrototype = require('../WrapForValidIteratorPrototype');
Expand Down
16 changes: 8 additions & 8 deletions Iterator.prototype.drop/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');

var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIteratorFromClosure = require('../aos/CreateIteratorFromClosure');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStep = require('es-abstract/2023/IteratorStep');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var ToIntegerOrInfinity = require('es-abstract/2023/ToIntegerOrInfinity');
var ToNumber = require('es-abstract/2023/ToNumber');
var Type = require('es-abstract/2023/Type');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStep = require('es-abstract/2024/IteratorStep');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity');
var ToNumber = require('es-abstract/2024/ToNumber');
var Type = require('es-abstract/2024/Type');

var iterHelperProto = require('../IteratorHelperPrototype');

Expand Down
16 changes: 8 additions & 8 deletions Iterator.prototype.every/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var NormalCompletion = require('es-abstract/2023/NormalCompletion');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var ToBoolean = require('es-abstract/2023/ToBoolean');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var ToBoolean = require('es-abstract/2024/ToBoolean');
var Type = require('es-abstract/2024/Type');

module.exports = function every(predicate) {
if (this instanceof every) {
Expand Down
16 changes: 8 additions & 8 deletions Iterator.prototype.filter/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var Call = require('es-abstract/2024/Call');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIteratorFromClosure = require('../aos/CreateIteratorFromClosure');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var ToBoolean = require('es-abstract/2023/ToBoolean');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var ToBoolean = require('es-abstract/2024/ToBoolean');
var Type = require('es-abstract/2024/Type');

var iterHelperProto = require('../IteratorHelperPrototype');

Expand Down
16 changes: 8 additions & 8 deletions Iterator.prototype.find/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var NormalCompletion = require('es-abstract/2023/NormalCompletion');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var ToBoolean = require('es-abstract/2023/ToBoolean');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var ToBoolean = require('es-abstract/2024/ToBoolean');
var Type = require('es-abstract/2024/Type');

module.exports = function find(predicate) {
if (this instanceof find) {
Expand Down
14 changes: 7 additions & 7 deletions Iterator.prototype.flatMap/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var Call = require('es-abstract/2024/Call');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIteratorFromClosure = require('../aos/CreateIteratorFromClosure');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var GetIteratorFlattenable = require('../aos/GetIteratorFlattenable');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var Type = require('es-abstract/2024/Type');

var iterHelperProto = require('../IteratorHelperPrototype');

Expand Down
12 changes: 6 additions & 6 deletions Iterator.prototype.forEach/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var Type = require('es-abstract/2024/Type');

module.exports = function forEach(fn) {
if (this instanceof forEach) {
Expand Down
14 changes: 7 additions & 7 deletions Iterator.prototype.map/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var Call = require('es-abstract/2024/Call');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIteratorFromClosure = require('../aos/CreateIteratorFromClosure');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var Type = require('es-abstract/2024/Type');

var iterHelperProto = require('../IteratorHelperPrototype');

Expand Down
12 changes: 6 additions & 6 deletions Iterator.prototype.reduce/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var Type = require('es-abstract/2024/Type');

module.exports = function reduce(reducer) {
if (this instanceof reduce) {
Expand Down
16 changes: 8 additions & 8 deletions Iterator.prototype.some/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var NormalCompletion = require('es-abstract/2023/NormalCompletion');
var ThrowCompletion = require('es-abstract/2023/ThrowCompletion');
var ToBoolean = require('es-abstract/2023/ToBoolean');
var Type = require('es-abstract/2023/Type');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');
var ThrowCompletion = require('es-abstract/2024/ThrowCompletion');
var ToBoolean = require('es-abstract/2024/ToBoolean');
var Type = require('es-abstract/2024/Type');

module.exports = function some(predicate) {
if (this instanceof some) {
Expand Down
14 changes: 7 additions & 7 deletions Iterator.prototype.take/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
var $RangeError = require('es-errors/range');
var $TypeError = require('es-errors/type');

var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIteratorFromClosure = require('../aos/CreateIteratorFromClosure');
var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IteratorClose = require('../aos/IteratorClose');
var IteratorStepValue = require('../aos/IteratorStepValue');
var NormalCompletion = require('es-abstract/2023/NormalCompletion');
var ToIntegerOrInfinity = require('es-abstract/2023/ToIntegerOrInfinity');
var ToNumber = require('es-abstract/2023/ToNumber');
var Type = require('es-abstract/2023/Type');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');
var ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity');
var ToNumber = require('es-abstract/2024/ToNumber');
var Type = require('es-abstract/2024/Type');

var iterHelperProto = require('../IteratorHelperPrototype');

Expand Down
4 changes: 2 additions & 2 deletions Iterator.prototype.toArray/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
var $TypeError = require('es-errors/type');

var GetIteratorDirect = require('../aos/GetIteratorDirect');
var IteratorStepValue = require('../aos/IteratorStepValue');
var Type = require('es-abstract/2023/Type');
var IteratorStepValue = require('es-abstract/2024/IteratorStepValue');
var Type = require('es-abstract/2024/Type');

var callBound = require('call-bind/callBound');

Expand Down
8 changes: 4 additions & 4 deletions IteratorHelperPrototype/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ var hasProto = require('has-proto')();
var iterProto = require('../Iterator.prototype/implementation');
var SLOT = require('internal-slot');

var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
var GeneratorResume = require('../aos/GeneratorResume');
var GeneratorResumeAbrupt = require('../aos/GeneratorResumeAbrupt');
var IteratorClose = require('../aos/IteratorClose');
var NormalCompletion = require('es-abstract/2023/NormalCompletion');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');

var implementation;
if (hasProto) {
Expand Down
8 changes: 4 additions & 4 deletions WrapForValidIteratorPrototype/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

var $TypeError = require('es-errors/type');

var Call = require('es-abstract/2023/Call');
var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject');
var GetMethod = require('es-abstract/2023/GetMethod');
var Type = require('es-abstract/2023/Type');
var Call = require('es-abstract/2024/Call');
var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
var GetMethod = require('es-abstract/2024/GetMethod');
var Type = require('es-abstract/2024/Type');

var SLOT = require('internal-slot');
var iterProto = require('../Iterator.prototype/implementation');
Expand Down
6 changes: 3 additions & 3 deletions aos/CreateIteratorFromClosure.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
var $TypeError = require('es-errors/type');

var GeneratorStart = require('./GeneratorStart');
var IsArray = require('es-abstract/2023/IsArray');
var IsCallable = require('es-abstract/2023/IsCallable');
var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate');
var IsArray = require('es-abstract/2024/IsArray');
var IsCallable = require('es-abstract/2024/IsCallable');
var OrdinaryObjectCreate = require('es-abstract/2024/OrdinaryObjectCreate');

var every = require('es-abstract/helpers/every');

Expand Down
2 changes: 1 addition & 1 deletion aos/GeneratorResume.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var $TypeError = require('es-errors/type');

var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject');
var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
var GeneratorValidate = require('./GeneratorValidate');

var SLOT = require('internal-slot');
Expand Down
7 changes: 4 additions & 3 deletions aos/GeneratorResumeAbrupt.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@

var $TypeError = require('es-errors/type');

var CompletionRecord = require('es-abstract/2023/CompletionRecord');
var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject');
var CompletionRecord = require('es-abstract/2024/CompletionRecord');
var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
var GeneratorValidate = require('./GeneratorValidate');
var NormalCompletion = require('es-abstract/2024/NormalCompletion');

var SLOT = require('internal-slot');

Expand Down Expand Up @@ -32,7 +33,7 @@ module.exports = function GeneratorResumeAbrupt(generator, abruptCompletion, gen
}
if (abruptCompletion.type() === 'return') {
// due to representing `GeneratorContext` as a function, we can't safely re-invoke it, so we can't support sending it a return completion
return CreateIterResultObject(SLOT.get(generator, '[[CloseIfAbrupt]]')(abruptCompletion), true);
return CreateIterResultObject(SLOT.get(generator, '[[CloseIfAbrupt]]')(NormalCompletion(abruptCompletion.value())), true);
}

var genContext = SLOT.get(generator, '[[GeneratorContext]]'); // step 5
Expand Down
6 changes: 3 additions & 3 deletions aos/GeneratorStart.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

var $TypeError = require('es-errors/type');

var CreateIterResultObject = require('es-abstract/2023/CreateIterResultObject');
var IsCallable = require('es-abstract/2023/IsCallable');
var Type = require('es-abstract/2023/Type');
var CreateIterResultObject = require('es-abstract/2024/CreateIterResultObject');
var IsCallable = require('es-abstract/2024/IsCallable');
var Type = require('es-abstract/2024/Type');

var SLOT = require('internal-slot');

Expand Down
4 changes: 2 additions & 2 deletions aos/GetIteratorDirect.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

var $TypeError = require('es-errors/type');

var Get = require('es-abstract/2023/Get');
var Type = require('es-abstract/2023/Type');
var Get = require('es-abstract/2024/Get');
var Type = require('es-abstract/2024/Type');

module.exports = function GetIteratorDirect(obj) {
if (Type(obj) !== 'Object') {
Expand Down
10 changes: 5 additions & 5 deletions aos/GetIteratorFlattenable.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

var $TypeError = require('es-errors/type');

var AdvanceStringIndex = require('es-abstract/2023/AdvanceStringIndex');
var Call = require('es-abstract/2023/Call');
var AdvanceStringIndex = require('es-abstract/2024/AdvanceStringIndex');
var Call = require('es-abstract/2024/Call');
var GetIteratorDirect = require('./GetIteratorDirect');
var GetMethod = require('es-abstract/2023/GetMethod');
var IsArray = require('es-abstract/2023/IsArray');
var Type = require('es-abstract/2023/Type');
var GetMethod = require('es-abstract/2024/GetMethod');
var IsArray = require('es-abstract/2024/IsArray');
var Type = require('es-abstract/2024/Type');

var getIteratorMethod = require('es-abstract/helpers/getIteratorMethod');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
"dependencies": {
"call-bind": "^1.0.7",
"define-properties": "^1.2.1",
"es-abstract": "^1.22.4",
"es-abstract": "^1.23.0",
"es-errors": "^1.3.0",
"es-set-tostringtag": "^2.0.3",
"function-bind": "^1.1.2",
Expand Down
2 changes: 1 addition & 1 deletion test/Iterator.prototype.flatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var debug = require('object-inspect');
var v = require('es-value-fixtures');
var hasSymbols = require('has-symbols/shams')();

var StringToCodePoints = require('es-abstract/2023/StringToCodePoints');
var StringToCodePoints = require('es-abstract/2024/StringToCodePoints');

var index = require('../Iterator.prototype.flatMap');
var impl = require('../Iterator.prototype.flatMap/implementation');
Expand Down

0 comments on commit 6b45f15

Please sign in to comment.