From 9429f04cb5114414dd8f94fe57f701897da7c4cf Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 4 Feb 2024 21:26:37 -0800 Subject: [PATCH] [Refactor] use `es-errors` where possible, so things that only need those do not need `get-intrinsic` --- aos/GetSetRecord.js | 6 ++---- implementation.js | 4 +--- package.json | 3 +-- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/aos/GetSetRecord.js b/aos/GetSetRecord.js index fcb063b..b78ac7e 100644 --- a/aos/GetSetRecord.js +++ b/aos/GetSetRecord.js @@ -1,9 +1,7 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); - -var $RangeError = GetIntrinsic('%RangeError%'); -var $TypeError = GetIntrinsic('%TypeError%'); +var $RangeError = require('es-errors/range'); +var $TypeError = require('es-errors/type'); var Get = require('es-abstract/2023/Get'); var IsCallable = require('es-abstract/2023/IsCallable'); diff --git a/implementation.js b/implementation.js index 347c88c..d5b72d6 100644 --- a/implementation.js +++ b/implementation.js @@ -1,8 +1,6 @@ 'use strict'; -var GetIntrinsic = require('get-intrinsic'); - -var $TypeError = GetIntrinsic('%TypeError%'); +var $TypeError = require('es-errors/type'); var $Set = require('es-set/polyfill')(); diff --git a/package.json b/package.json index b8b44c8..46b243b 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "call-bind": "^1.0.5", "define-properties": "^1.2.1", "es-abstract": "^1.22.3", + "es-errors": "^1.0.0", "es-set": "^1.1.1", - "get-intrinsic": "^1.2.2", "is-set": "^2.0.2", "stop-iteration-iterator": "^1.0.0" }, @@ -77,7 +77,6 @@ "es-get-iterator": "^1.1.3", "es-map": "^1.0.5", "es-value-fixtures": "^1.4.2", - "es6-shim": "^0.35.8", "eslint": "=8.8.0", "evalmd": "^0.0.19", "for-each": "^0.3.3",