Skip to content

Commit

Permalink
[Refactor] use es-errors where possible, so things that only need t…
Browse files Browse the repository at this point in the history
…hose do not need `get-intrinsic`
  • Loading branch information
ljharb committed Feb 5, 2024
1 parent f7f2310 commit 9429f04
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions aos/GetSetRecord.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down
4 changes: 1 addition & 3 deletions implementation.js
Original file line number Diff line number Diff line change
@@ -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')();

Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand All @@ -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",
Expand Down

0 comments on commit 9429f04

Please sign in to comment.