Skip to content

Commit

Permalink
[Refactor] use math-intrinsics directly
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Dec 18, 2024
1 parent 9d48ebd commit b1edbd4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions implementation.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ var substring = require('es-abstract/2024/substring');
var ToIntegerOrInfinity = require('es-abstract/2024/ToIntegerOrInfinity');
var ToString = require('es-abstract/2024/ToString');

var max = Math.max;
var min = Math.min;
var max = require('math-intrinsics/max');
var min = require('math-intrinsics/min');

module.exports = function substr(start, length) {
var O = RequireObjectCoercible(this); // step 1
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"call-bound": "^1.0.3",
"define-properties": "^1.2.1",
"es-abstract": "^1.23.6",
"es-object-atoms": "^1.0.0"
"es-object-atoms": "^1.0.0",
"math-intrinsics": "^1.0.0"
},
"devDependencies": {
"@es-shims/api": "^2.5.1",
Expand Down

0 comments on commit b1edbd4

Please sign in to comment.