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 175e1d1 commit c4f7d69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
9 changes: 2 additions & 7 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 DeletePropertyOrThrow = require('es-abstract/2023/DeletePropertyOrThrow');
var Get = require('es-abstract/2023/Get');
var HasProperty = require('es-abstract/2023/HasProperty');
Expand All @@ -10,14 +8,11 @@ var Set = require('es-abstract/2023/Set');
var ToObject = require('es-abstract/2023/ToObject');
var ToString = require('es-abstract/2023/ToString');

var MAX_SAFE_INTEGER = require('es-abstract/helpers/maxSafeInteger');

var $TypeError = GetIntrinsic('%TypeError%');

var forEach = require('es-abstract/helpers/forEach');
var MAX_SAFE_INTEGER = require('es-abstract/helpers/maxSafeInteger');

var $TypeError = require('es-errors/type');
var callBound = require('call-bind/callBound');

var isString = require('is-string');

// Check failure of by-index access of string characters (IE < 9) and failure of `0 in boxedString` (Rhino)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,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",
"is-string": "^1.0.7"
},
"testling": {
Expand Down

0 comments on commit c4f7d69

Please sign in to comment.