Skip to content

Commit aa45e19

Browse files
committed
[Refactor] use math-intrinsics directly
1 parent 6e4dcd6 commit aa45e19

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

implementation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ var ToObject = require('es-object-atoms/ToObject');
99
var ToString = require('es-abstract/2024/ToString');
1010

1111
var forEach = require('es-abstract/helpers/forEach');
12-
var MAX_SAFE_INTEGER = require('es-abstract/helpers/maxSafeInteger');
12+
var MAX_SAFE_INTEGER = require('math-intrinsics/constants/maxSafeInteger');
1313

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

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

2222
var strSplit = callBound('String.prototype.split');

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@
7676
"es-abstract": "^1.23.6",
7777
"es-errors": "^1.3.0",
7878
"es-object-atoms": "^1.0.0",
79-
"is-string": "^1.1.1"
79+
"is-string": "^1.1.1",
80+
"math-intrinsics": "^1.1.0"
8081
},
8182
"testling": {
8283
"files": "test/*.js"

0 commit comments

Comments
 (0)