Skip to content

Commit

Permalink
[Refactor] use call-bind and get-intrinsic where applicable
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 26, 2020
1 parent 22f43cd commit a63a33c
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions implementation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

var define = require('define-properties');
var callBound = require('es-abstract/helpers/callBound');
var GetIntrinsic = require('es-abstract/GetIntrinsic');
var callBound = require('call-bind/callBound');
var GetIntrinsic = require('get-intrinsic');
var SameValue = require('es-abstract/2020/SameValue');
var SameValueZero = require('es-abstract/2020/SameValueZero');

Expand Down
2 changes: 1 addition & 1 deletion lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var define = require('define-properties');
var hasSymbols = require('has-symbols')();
var OrdinaryObjectCreate = require('es-abstract/2020/OrdinaryObjectCreate');
var Type = require('es-abstract/2020/Type');
var GetIntrinsic = require('es-abstract/GetIntrinsic');
var GetIntrinsic = require('get-intrinsic');

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

Expand Down
2 changes: 1 addition & 1 deletion lib/map-iterator.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var define = require('define-properties');
var hasSymbols = require('has-symbols')();

var GetIntrinsic = require('es-abstract/GetIntrinsic');
var GetIntrinsic = require('get-intrinsic');
var CreateIterResultObject = require('es-abstract/2020/CreateIterResultObject');
var OrdinaryObjectCreate = require('es-abstract/2020/OrdinaryObjectCreate');

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@
"tape": "^5.0.1"
},
"dependencies": {
"call-bind": "^1.0.0",
"define-properties": "^1.1.3",
"es-abstract": "^1.18.0-next.1",
"es-get-iterator": "^1.1.1",
"get-intrinsic": "^1.0.2",
"globalthis": "^1.0.1",
"has-symbols": "^1.0.1"
},
Expand Down

0 comments on commit a63a33c

Please sign in to comment.