Skip to content

Commit

Permalink
[Refactor] update es-abstract usage to 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Sep 18, 2024
1 parent d41aeb6 commit 9ca4195
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ var SLOT = require('internal-slot');
var entries = require('object.entries');
var forEach = require('for-each');
var GetIntrinsic = require('get-intrinsic');
var DefinePropertyOrThrow = require('es-abstract/2023/DefinePropertyOrThrow');
var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate');
var Type = require('es-abstract/2023/Type');
var DefinePropertyOrThrow = require('es-abstract/2024/DefinePropertyOrThrow');
var OrdinaryObjectCreate = require('es-abstract/2024/OrdinaryObjectCreate');
var Type = require('es-abstract/2024/Type');

var $ObjectCreate = GetIntrinsic('%Object.create%', true);

Expand Down
16 changes: 8 additions & 8 deletions lib/set-helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ var callBound = require('call-bind/callBound');
var callBind = require('call-bind');
var SLOT = require('internal-slot');

var Call = require('es-abstract/2023/Call');
var GetIterator = require('es-abstract/2023/GetIterator');
var IsArray = require('es-abstract/2023/IsArray');
var IsCallable = require('es-abstract/2023/IsCallable');
var IteratorClose = require('es-abstract/2023/IteratorClose');
var IteratorStep = require('es-abstract/2023/IteratorStep');
var ToString = require('es-abstract/2023/ToString');
var Type = require('es-abstract/2023/Type');
var Call = require('es-abstract/2024/Call');
var GetIterator = require('es-abstract/2024/GetIterator');
var IsArray = require('es-abstract/2024/IsArray');
var IsCallable = require('es-abstract/2024/IsCallable');
var IteratorClose = require('es-abstract/2024/IteratorClose');
var IteratorStep = require('es-abstract/2024/IteratorStep');
var ToString = require('es-abstract/2024/ToString');
var Type = require('es-abstract/2024/Type');

var MapShim = require('es-map/implementation');

Expand Down
2 changes: 1 addition & 1 deletion lib/set-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var setToStringTag = require('es-set-tostringtag');
var SLOT = require('internal-slot');

var GetIntrinsic = require('get-intrinsic');
var OrdinaryObjectCreate = require('es-abstract/2023/OrdinaryObjectCreate');
var OrdinaryObjectCreate = require('es-abstract/2024/OrdinaryObjectCreate');

var addIterator = require('./helpers').addIterator;

Expand Down
4 changes: 2 additions & 2 deletions lib/validation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

var SLOT = require('internal-slot');
var ToString = require('es-abstract/2023/ToString');
var Type = require('es-abstract/2023/Type');
var ToString = require('es-abstract/2024/ToString');
var Type = require('es-abstract/2024/Type');

var isSet = function isSet(set) {
return SLOT.has(set, '[[es6set]]');
Expand Down
2 changes: 1 addition & 1 deletion polyfill.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var OrdinarySetPrototypeOf = require('es-abstract/2023/OrdinarySetPrototypeOf');
var OrdinarySetPrototypeOf = require('es-abstract/2024/OrdinarySetPrototypeOf');
var define = require('define-properties');
var SLOT = require('internal-slot');

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

var callBind = require('call-bind');
var define = require('define-properties');
var Call = require('es-abstract/2023/Call');
var DefinePropertyOrThrow = require('es-abstract/2023/DefinePropertyOrThrow');
var Call = require('es-abstract/2024/Call');
var DefinePropertyOrThrow = require('es-abstract/2024/DefinePropertyOrThrow');
var globalThis = require('globalthis')();
var hasPropertyDescriptors = require('has-property-descriptors');
var getStopIterationIterator = require('stop-iteration-iterator');
Expand Down
2 changes: 1 addition & 1 deletion test/tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

'use strict';

var HasOwnProperty = require('es-abstract/2023/HasOwnProperty');
var HasOwnProperty = require('es-abstract/2024/HasOwnProperty');
var isEnumerable = Object.prototype.propertyIsEnumerable;
var functionsHaveNames = require('functions-have-names')();
var hasSymbols = require('has-symbols')();
Expand Down

0 comments on commit 9ca4195

Please sign in to comment.