File tree 6 files changed +12
-6
lines changed
6 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ const {
25
25
ObjectKeys,
26
26
ObjectSetPrototypeOf,
27
27
Symbol,
28
+ SymbolFor,
28
29
} = primordials ;
29
30
30
31
const net = require ( 'net' ) ;
@@ -378,7 +379,7 @@ Server.prototype[EE.captureRejectionSymbol] = function(
378
379
}
379
380
break ;
380
381
default :
381
- net . Server . prototype [ Symbol . for ( 'nodejs.rejection' ) ]
382
+ net . Server . prototype [ SymbolFor ( 'nodejs.rejection' ) ]
382
383
. call ( this , err , event , ...args ) ;
383
384
}
384
385
} ;
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ const {
26
26
ObjectDefineProperty,
27
27
ObjectSetPrototypeOf,
28
28
Symbol,
29
+ SymbolFor,
29
30
} = primordials ;
30
31
31
32
const {
@@ -1294,7 +1295,7 @@ Server.prototype[EE.captureRejectionSymbol] = function(
1294
1295
sock . destroy ( err ) ;
1295
1296
break ;
1296
1297
default :
1297
- net . Server . prototype [ Symbol . for ( 'nodejs.rejection' ) ]
1298
+ net . Server . prototype [ SymbolFor ( 'nodejs.rejection' ) ]
1298
1299
. call ( this , err , event , sock ) ;
1299
1300
}
1300
1301
} ;
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ const {
33
33
ReflectApply,
34
34
ReflectOwnKeys,
35
35
Symbol,
36
+ SymbolFor,
36
37
} = primordials ;
37
- const kRejection = Symbol . for ( 'nodejs.rejection' ) ;
38
+ const kRejection = SymbolFor ( 'nodejs.rejection' ) ;
38
39
39
40
let spliceOne ;
40
41
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 ( ) ;
@@ -199,7 +200,7 @@ class SystemError extends Error {
199
200
return `${ this . name } [${ this . code } ]: ${ this . message } ` ;
200
201
}
201
202
202
- [ Symbol . for ( 'nodejs.util.inspect.custom' ) ] ( recurseTimes , ctx ) {
203
+ [ SymbolFor ( 'nodejs.util.inspect.custom' ) ] ( recurseTimes , ctx ) {
203
204
return lazyInternalUtilInspect ( ) . inspect ( this , {
204
205
...ctx ,
205
206
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