2323
2424const {
2525 ObjectDefineProperties,
26- Symbol ,
26+ SymbolToPrimitive ,
2727} = primordials ;
2828
2929const { safeGetenv } = internalBinding ( 'credentials' ) ;
@@ -73,13 +73,13 @@ const getInterfaceAddresses = getCheckedFunction(_getInterfaceAddresses);
7373const getOSRelease = getCheckedFunction ( _getOSRelease ) ;
7474const getOSType = getCheckedFunction ( _getOSType ) ;
7575
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 ( ) ;
8383
8484const kEndianness = isBigEndian ? 'BE' : 'LE' ;
8585
@@ -117,12 +117,12 @@ function cpus() {
117117function arch ( ) {
118118 return process . arch ;
119119}
120- arch [ Symbol . toPrimitive ] = ( ) => process . arch ;
120+ arch [ SymbolToPrimitive ] = ( ) => process . arch ;
121121
122122function platform ( ) {
123123 return process . platform ;
124124}
125- platform [ Symbol . toPrimitive ] = ( ) => process . platform ;
125+ platform [ SymbolToPrimitive ] = ( ) => process . platform ;
126126
127127function tmpdir ( ) {
128128 var path ;
@@ -143,12 +143,12 @@ function tmpdir() {
143143
144144 return path ;
145145}
146- tmpdir [ Symbol . toPrimitive ] = ( ) => tmpdir ( ) ;
146+ tmpdir [ SymbolToPrimitive ] = ( ) => tmpdir ( ) ;
147147
148148function endianness ( ) {
149149 return kEndianness ;
150150}
151- endianness [ Symbol . toPrimitive ] = ( ) => kEndianness ;
151+ endianness [ SymbolToPrimitive ] = ( ) => kEndianness ;
152152
153153// Returns the number of ones in the binary representation of the decimal
154154// number.
0 commit comments