@@ -188,19 +188,19 @@ ObjectDefineProperties(Console.prototype, {
188
188
__proto__ : null ,
189
189
...consolePropAttributes ,
190
190
// Eager version for the Console constructor
191
- value : function ( stdout , stderr ) {
191
+ value : assignFunctionName ( kBindStreamsEager , function ( stdout , stderr ) {
192
192
ObjectDefineProperties ( this , {
193
193
'_stdout' : { __proto__ : null , ...consolePropAttributes , value : stdout } ,
194
194
'_stderr' : { __proto__ : null , ...consolePropAttributes , value : stderr } ,
195
195
} ) ;
196
- } ,
196
+ } ) ,
197
197
} ,
198
198
[ kBindStreamsLazy ] : {
199
199
__proto__ : null ,
200
200
...consolePropAttributes ,
201
201
// Lazily load the stdout and stderr from an object so we don't
202
202
// create the stdio streams when they are not even accessed
203
- value : function ( object ) {
203
+ value : assignFunctionName ( kBindStreamsLazy , function ( object ) {
204
204
let stdout ;
205
205
let stderr ;
206
206
ObjectDefineProperties ( this , {
@@ -223,12 +223,12 @@ ObjectDefineProperties(Console.prototype, {
223
223
set ( value ) { stderr = value ; } ,
224
224
} ,
225
225
} ) ;
226
- } ,
226
+ } ) ,
227
227
} ,
228
228
[ kBindProperties ] : {
229
229
__proto__ : null ,
230
230
...consolePropAttributes ,
231
- value : function ( ignoreErrors , colorMode , groupIndentation = 2 ) {
231
+ value : assignFunctionName ( kBindProperties , function ( ignoreErrors , colorMode , groupIndentation = 2 ) {
232
232
ObjectDefineProperties ( this , {
233
233
'_stdoutErrorHandler' : {
234
234
__proto__ : null ,
@@ -263,12 +263,12 @@ ObjectDefineProperties(Console.prototype, {
263
263
value : 'console' ,
264
264
} ,
265
265
} ) ;
266
- } ,
266
+ } ) ,
267
267
} ,
268
268
[ kWriteToConsole ] : {
269
269
__proto__ : null ,
270
270
...consolePropAttributes ,
271
- value : function ( streamSymbol , string ) {
271
+ value : assignFunctionName ( kWriteToConsole , function ( streamSymbol , string ) {
272
272
const ignoreErrors = this . _ignoreErrors ;
273
273
const groupIndent = internalIndentationMap . get ( this ) || '' ;
274
274
@@ -306,12 +306,12 @@ ObjectDefineProperties(Console.prototype, {
306
306
} finally {
307
307
stream . removeListener ( 'error' , noop ) ;
308
308
}
309
- } ,
309
+ } ) ,
310
310
} ,
311
311
[ kGetInspectOptions ] : {
312
312
__proto__ : null ,
313
313
...consolePropAttributes ,
314
- value : function ( stream ) {
314
+ value : assignFunctionName ( kGetInspectOptions , function ( stream ) {
315
315
let color = this [ kColorMode ] ;
316
316
if ( color === 'auto' ) {
317
317
color = lazyUtilColors ( ) . shouldColorize ( stream ) ;
@@ -326,25 +326,25 @@ ObjectDefineProperties(Console.prototype, {
326
326
}
327
327
328
328
return color ? kColorInspectOptions : kNoColorInspectOptions ;
329
- } ,
329
+ } ) ,
330
330
} ,
331
331
[ kFormatForStdout ] : {
332
332
__proto__ : null ,
333
333
...consolePropAttributes ,
334
- value : function ( args ) {
334
+ value : assignFunctionName ( kFormatForStdout , function ( args ) {
335
335
const opts = this [ kGetInspectOptions ] ( this . _stdout ) ;
336
336
ArrayPrototypeUnshift ( args , opts ) ;
337
337
return ReflectApply ( formatWithOptions , null , args ) ;
338
- } ,
338
+ } ) ,
339
339
} ,
340
340
[ kFormatForStderr ] : {
341
341
__proto__ : null ,
342
342
...consolePropAttributes ,
343
- value : function ( args ) {
343
+ value : assignFunctionName ( kFormatForStderr , function ( args ) {
344
344
const opts = this [ kGetInspectOptions ] ( this . _stderr ) ;
345
345
ArrayPrototypeUnshift ( args , opts ) ;
346
346
return ReflectApply ( formatWithOptions , null , args ) ;
347
- } ,
347
+ } ) ,
348
348
} ,
349
349
} ) ;
350
350
0 commit comments