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 20, 2024
1 parent 6e4dcd6 commit aa45e19
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 @@ -9,14 +9,14 @@ var ToObject = require('es-object-atoms/ToObject');
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_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');

var $TypeError = require('es-errors/type');
var callBound = require('call-bound');
var isString = require('is-string');

// Check failure of by-index access of string characters (IE < 9) and failure of `0 in boxedString` (Rhino)
var boxedString = Object('a');
var boxedString = ToObject('a');
var splitString = boxedString[0] !== 'a' || !(0 in boxedString);

var strSplit = callBound('String.prototype.split');
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@
"es-abstract": "^1.23.6",
"es-errors": "^1.3.0",
"es-object-atoms": "^1.0.0",
"is-string": "^1.1.1"
"is-string": "^1.1.1",
"math-intrinsics": "^1.1.0"
},
"testling": {
"files": "test/*.js"
Expand Down

0 comments on commit aa45e19

Please sign in to comment.