File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 2
2
3
3
'use strict' ;
4
4
5
- var callBound = require ( 'es-abstract/helpers /callBound' ) ;
6
- var RequireObjectCoercible = require ( 'es-abstract/2019 /RequireObjectCoercible' ) ;
7
- var ToString = require ( 'es-abstract/2019 /ToString' ) ;
8
- var ToInteger = require ( 'es-abstract/2019/ToInteger ' ) ;
5
+ var callBound = require ( 'call-bind /callBound' ) ;
6
+ var RequireObjectCoercible = require ( 'es-abstract/2024 /RequireObjectCoercible' ) ;
7
+ var ToString = require ( 'es-abstract/2024 /ToString' ) ;
8
+ var ToIntegerOrInfinity = require ( 'es-abstract/2024/ToIntegerOrInfinity ' ) ;
9
9
var StringCharCodeAt = callBound ( 'String.prototype.charCodeAt' ) ;
10
10
11
11
module . exports = function codePointAt ( position ) {
12
12
var O = RequireObjectCoercible ( this ) ;
13
13
var string = ToString ( O ) ;
14
14
var size = string . length ;
15
- var index = ToInteger ( position ) ;
15
+ var index = ToIntegerOrInfinity ( position ) ;
16
16
// Account for out-of-bounds indices:
17
17
if ( index < 0 || index >= size ) {
18
18
return undefined ;
Original file line number Diff line number Diff line change 39
39
"cover" : " istanbul cover --report html --verbose --dir coverage tape 'tests/*.js'"
40
40
},
41
41
"dependencies" : {
42
- "es-abstract" : " ^1.17.5"
42
+ "call-bind" : " ^1.0.7" ,
43
+ "es-abstract" : " ^1.23.3"
43
44
},
44
45
"devDependencies" : {
45
46
"@es-shims/api" : " ^2.5.1" ,
46
47
"@ljharb/eslint-config" : " ^21.1.1" ,
47
- "call-bind" : " ^1.0.7" ,
48
48
"define-properties" : " ^1.2.1" ,
49
49
"eslint" : " =8.8.0" ,
50
50
"function-bind" : " ^1.1.2" ,
You can’t perform that action at this time.
0 commit comments