Skip to content

Commit

Permalink
[Refactor] use es-errors, so things that only need those do not nee…
Browse files Browse the repository at this point in the history
…d `get-intrinsic`
  • Loading branch information
ljharb committed Feb 6, 2024
1 parent ca2f226 commit 1336b0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions implementation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict';

var GetIntrinsic = require('get-intrinsic');

var ArrayCreate = require('es-abstract/2023/ArrayCreate');
var CreateDataPropertyOrThrow = require('es-abstract/2023/CreateDataPropertyOrThrow');
var Get = require('es-abstract/2023/Get');
Expand All @@ -10,7 +8,7 @@ var LengthOfArrayLike = require('es-abstract/2023/LengthOfArrayLike');
var ToObject = require('es-abstract/2023/ToObject');
var ToString = require('es-abstract/2023/ToString');

var $RangeError = GetIntrinsic('%RangeError%');
var $RangeError = require('es-errors/range');

var setFunctionName = require('set-function-name');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"call-bind": "^1.0.5",
"define-properties": "^1.2.1",
"es-abstract": "^1.22.3",
"get-intrinsic": "^1.2.2",
"es-errors": "^1.3.0",
"set-function-name": "^2.0.1"
},
"auto-changelog": {
Expand Down

0 comments on commit 1336b0d

Please sign in to comment.