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 17, 2024
1 parent d5cc382 commit 803b934
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"ArrayCreate",
"CreateDataPropertyOrThrow",
"Get",
"GetIntrinsic",
"LengthOfArrayLike",
"ToIntegerOrInfinity",
"ToObject",
Expand Down
5 changes: 2 additions & 3 deletions implementation.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

var callBound = require('call-bound');
var GetIntrinsic = require('get-intrinsic');
var $TypeError = require('es-errors/type');

var ArrayCreate = require('es-abstract/2024/ArrayCreate');
Expand All @@ -16,8 +15,8 @@ var ToString = require('es-abstract/2024/ToString');
var forEach = require('es-abstract/helpers/forEach');
var $MAX_SAFE_INTEGER = require('es-abstract/helpers/maxSafeInteger');

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

var $slice = callBound('Array.prototype.slice');

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"es-errors": "^1.3.0",
"es-object-atoms": "^1.0.0",
"es-shim-unscopables": "^1.0.2",
"get-intrinsic": "^1.2.6"
"math-intrinsics": "^1.0.0"
},
"auto-changelog": {
"output": "CHANGELOG.md",
Expand Down

0 comments on commit 803b934

Please sign in to comment.