Skip to content

Commit

Permalink
[Refactor] use call-bound and math-intrinsics directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 11, 2024
1 parent 0251e2f commit 891fc01
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Uint8Array.prototype.toBase64/implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var ToBoolean = require('es-abstract/2024/ToBoolean');

var alphabetFromIdentifier = require('../aos/helpers/alphabetFromIdentifier');

var callBound = require('es-abstract/helpers/callBound');
var callBound = require('call-bound');

var $charAt = callBound('String.prototype.charAt');

Expand Down
6 changes: 3 additions & 3 deletions aos/FromBase64.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
var $SyntaxError = require('es-errors/syntax');
var $TypeError = require('es-errors/type');

var callBound = require('call-bind/callBound');
var callBound = require('call-bound');

var DecodeBase64Chunk = require('../aos/DecodeBase64Chunk');
var SkipAsciiWhitespace = require('../aos/SkipAsciiWhitespace');
var substring = require('es-abstract/2024/substring');

var isInteger = require('es-abstract/helpers/isInteger');
var maxSafeInteger = require('es-abstract/helpers/maxSafeInteger');
var isInteger = require('math-intrinsics/isInteger');
var maxSafeInteger = require('math-intrinsics/constants/maxSafeInteger');

var alphabetFromIdentifier = require('./helpers/alphabetFromIdentifier');

Expand Down
6 changes: 3 additions & 3 deletions aos/FromHex.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ var $TypeError = require('es-errors/type');
var modulo = require('es-abstract/2024/modulo');
var substring = require('es-abstract/2024/substring');

var isInteger = require('es-abstract/helpers/isInteger');
var MAX_SAFE_INTEGER = require('es-abstract/helpers/maxSafeInteger');
var isInteger = require('math-intrinsics/isInteger');
var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');

var callBound = require('call-bind/callBound');
var callBound = require('call-bound');
var safeRegexTest = require('safe-regex-test');

var isHexDigit = safeRegexTest(/^[0-9a-fA-F]+$/);
Expand Down
2 changes: 1 addition & 1 deletion aos/GetUint8ArrayBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

var callBound = require('call-bind/callBound');
var callBound = require('call-bound');

var GetValueFromBuffer = require('es-abstract/2024/GetValueFromBuffer');
var IsTypedArrayOutOfBounds = require('./IsTypedArrayOutOfBounds');
Expand Down
2 changes: 1 addition & 1 deletion aos/IsFixedLengthArrayBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

var callBound = require('call-bind/callBound');
var callBound = require('call-bound');

var $arrayBufferResizable = callBound('%ArrayBuffer.prototype.resizable%', true);
var $sharedArrayGrowable = callBound('%SharedArrayBuffer.prototype.growable%', true);
Expand Down
6 changes: 2 additions & 4 deletions aos/SkipAsciiWhitespace.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
'use strict';

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

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

var callBound = require('call-bind/callBound');
var isInteger = require('math-intrinsics/isInteger');
var callBound = require('call-bound');

var $charCodeAt = callBound('String.prototype.charCodeAt');

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,15 @@
"dependencies": {
"array-buffer-byte-length": "^1.0.1",
"call-bind": "^1.0.8",
"call-bound": "^1.0.2",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.5",
"es-errors": "^1.3.0",
"get-intrinsic": "^1.2.6",
"is-array-buffer": "^3.0.4",
"is-shared-array-buffer": "^1.0.3",
"is-typed-array": "^1.1.13",
"math-intrinsics": "^1.0.0",
"safe-array-concat": "^1.1.2",
"safe-regex-test": "^1.0.3",
"typed-array-buffer": "^1.0.2",
Expand Down

0 comments on commit 891fc01

Please sign in to comment.