23
23
24
24
const {
25
25
ObjectDefineProperties,
26
- Symbol ,
26
+ SymbolToPrimitive ,
27
27
} = primordials ;
28
28
29
29
const { safeGetenv } = internalBinding ( 'credentials' ) ;
@@ -73,13 +73,13 @@ const getInterfaceAddresses = getCheckedFunction(_getInterfaceAddresses);
73
73
const getOSRelease = getCheckedFunction ( _getOSRelease ) ;
74
74
const getOSType = getCheckedFunction ( _getOSType ) ;
75
75
76
- getFreeMem [ Symbol . toPrimitive ] = ( ) => getFreeMem ( ) ;
77
- getHostname [ Symbol . toPrimitive ] = ( ) => getHostname ( ) ;
78
- getHomeDirectory [ Symbol . toPrimitive ] = ( ) => getHomeDirectory ( ) ;
79
- getOSRelease [ Symbol . toPrimitive ] = ( ) => getOSRelease ( ) ;
80
- getOSType [ Symbol . toPrimitive ] = ( ) => getOSType ( ) ;
81
- getTotalMem [ Symbol . toPrimitive ] = ( ) => getTotalMem ( ) ;
82
- getUptime [ Symbol . toPrimitive ] = ( ) => getUptime ( ) ;
76
+ getFreeMem [ SymbolToPrimitive ] = ( ) => getFreeMem ( ) ;
77
+ getHostname [ SymbolToPrimitive ] = ( ) => getHostname ( ) ;
78
+ getHomeDirectory [ SymbolToPrimitive ] = ( ) => getHomeDirectory ( ) ;
79
+ getOSRelease [ SymbolToPrimitive ] = ( ) => getOSRelease ( ) ;
80
+ getOSType [ SymbolToPrimitive ] = ( ) => getOSType ( ) ;
81
+ getTotalMem [ SymbolToPrimitive ] = ( ) => getTotalMem ( ) ;
82
+ getUptime [ SymbolToPrimitive ] = ( ) => getUptime ( ) ;
83
83
84
84
const kEndianness = isBigEndian ? 'BE' : 'LE' ;
85
85
@@ -117,12 +117,12 @@ function cpus() {
117
117
function arch ( ) {
118
118
return process . arch ;
119
119
}
120
- arch [ Symbol . toPrimitive ] = ( ) => process . arch ;
120
+ arch [ SymbolToPrimitive ] = ( ) => process . arch ;
121
121
122
122
function platform ( ) {
123
123
return process . platform ;
124
124
}
125
- platform [ Symbol . toPrimitive ] = ( ) => process . platform ;
125
+ platform [ SymbolToPrimitive ] = ( ) => process . platform ;
126
126
127
127
function tmpdir ( ) {
128
128
var path ;
@@ -143,12 +143,12 @@ function tmpdir() {
143
143
144
144
return path ;
145
145
}
146
- tmpdir [ Symbol . toPrimitive ] = ( ) => tmpdir ( ) ;
146
+ tmpdir [ SymbolToPrimitive ] = ( ) => tmpdir ( ) ;
147
147
148
148
function endianness ( ) {
149
149
return kEndianness ;
150
150
}
151
- endianness [ Symbol . toPrimitive ] = ( ) => kEndianness ;
151
+ endianness [ SymbolToPrimitive ] = ( ) => kEndianness ;
152
152
153
153
// Returns the number of ones in the binary representation of the decimal
154
154
// number.
0 commit comments