File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const {
17
17
ObjectDefineProperty,
18
18
ObjectKeys,
19
19
Symbol,
20
+ SymbolFor,
20
21
} = primordials ;
21
22
22
23
const messages = new Map ( ) ;
@@ -207,7 +208,7 @@ class SystemError extends Error {
207
208
return `${ this . name } [${ this . code } ]: ${ this . message } ` ;
208
209
}
209
210
210
- [ Symbol . for ( 'nodejs.util.inspect.custom' ) ] ( recurseTimes , ctx ) {
211
+ [ SymbolFor ( 'nodejs.util.inspect.custom' ) ] ( recurseTimes , ctx ) {
211
212
return lazyInternalUtilInspect ( ) . inspect ( this , {
212
213
...ctx ,
213
214
getters : true ,
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const {
12
12
ObjectSetPrototypeOf,
13
13
ReflectConstruct,
14
14
Symbol,
15
+ SymbolFor,
15
16
} = primordials ;
16
17
17
18
const {
@@ -425,7 +426,7 @@ module.exports = {
425
426
426
427
// Symbol used to provide a custom inspect function for an object as an
427
428
// alternative to using 'inspect'
428
- customInspectSymbol : Symbol . for ( 'nodejs.util.inspect.custom' ) ,
429
+ customInspectSymbol : SymbolFor ( 'nodejs.util.inspect.custom' ) ,
429
430
430
431
// Used by the buffer module to capture an internal reference to the
431
432
// default isEncoding implementation, just in case userland overrides it.
Original file line number Diff line number Diff line change 8
8
ObjectCreate,
9
9
ObjectEntries,
10
10
Symbol,
11
+ SymbolFor,
11
12
} = primordials ;
12
13
13
14
const EventEmitter = require ( 'events' ) ;
@@ -62,7 +63,7 @@ const kOnCouldNotSerializeErr = Symbol('kOnCouldNotSerializeErr');
62
63
const kOnErrorMessage = Symbol ( 'kOnErrorMessage' ) ;
63
64
const kParentSideStdio = Symbol ( 'kParentSideStdio' ) ;
64
65
65
- const SHARE_ENV = Symbol . for ( 'nodejs.worker_threads.SHARE_ENV' ) ;
66
+ const SHARE_ENV = SymbolFor ( 'nodejs.worker_threads.SHARE_ENV' ) ;
66
67
const debug = require ( 'internal/util/debuglog' ) . debuglog ( 'worker' ) ;
67
68
68
69
let cwdCounter ;
You can’t perform that action at this time.
0 commit comments