From a63a33c78af6fa811514367bb23a2ccd7848102d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Fri, 25 Dec 2020 21:45:09 -0800 Subject: [PATCH] [Refactor] use `call-bind` and `get-intrinsic` where applicable --- implementation.js | 4 ++-- lib/helpers.js | 2 +- lib/map-iterator.js | 2 +- package.json | 2 ++ 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/implementation.js b/implementation.js index adbec5f..27ee4a7 100644 --- a/implementation.js +++ b/implementation.js @@ -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'); diff --git a/lib/helpers.js b/lib/helpers.js index 2bdac60..3af1881 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -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); diff --git a/lib/map-iterator.js b/lib/map-iterator.js index f124d90..53596ee 100644 --- a/lib/map-iterator.js +++ b/lib/map-iterator.js @@ -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'); diff --git a/package.json b/package.json index 9832682..d705a57 100644 --- a/package.json +++ b/package.json @@ -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" },