File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- var callBound = require ( 'call-bind/callBound ' ) ;
3
+ var callBound = require ( 'call-bound ' ) ;
4
4
5
+ /** @type {undefined | ((thisArg: SharedArrayBuffer) => number) } */
5
6
var $byteLength = callBound ( 'SharedArrayBuffer.prototype.byteLength' , true ) ;
6
7
7
8
/** @type {import('.') } */
@@ -11,13 +12,13 @@ module.exports = $byteLength
11
12
return false ;
12
13
}
13
14
try {
15
+ // @ts -expect-error TS can't figure out this closed-over variable is non-nullable, and it's fine that `obj` might not be a SAB
14
16
$byteLength ( obj ) ;
15
17
return true ;
16
18
} catch ( e ) {
17
19
return false ;
18
20
}
19
21
}
20
- // @ts -expect-error
21
- : function isSharedArrayBuffer ( obj ) { // eslint-disable-line no-unused-vars
22
+ : function isSharedArrayBuffer ( _obj ) { // eslint-disable-line no-unused-vars
22
23
return false ;
23
24
} ;
Original file line number Diff line number Diff line change 51
51
"@arethetypeswrong/cli" : " ^0.17.1" ,
52
52
"@ljharb/eslint-config" : " ^21.1.1" ,
53
53
"@ljharb/tsconfig" : " ^0.2.2" ,
54
- "@types/call-bind" : " ^1.0.5" ,
55
54
"@types/es-value-fixtures" : " ^1.4.4" ,
56
55
"@types/for-each" : " ^0.3.3" ,
57
56
"@types/node" : " ^20.17.10" ,
80
79
"hideCredit" : true
81
80
},
82
81
"dependencies" : {
83
- "call-bind " : " ^1.0.8 "
82
+ "call-bound " : " ^1.0.3 "
84
83
},
85
84
"publishConfig" : {
86
85
"ignore" : [
You can’t perform that action at this time.
0 commit comments