Skip to content

Commit 7b47f5a

Browse files
committed
squash: rename more functions
1 parent 0213a71 commit 7b47f5a

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/internal/console/constructor.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -188,19 +188,19 @@ ObjectDefineProperties(Console.prototype, {
188188
__proto__: null,
189189
...consolePropAttributes,
190190
// Eager version for the Console constructor
191-
value: function(stdout, stderr) {
191+
value: assignFunctionName(kBindStreamsEager, function(stdout, stderr) {
192192
ObjectDefineProperties(this, {
193193
'_stdout': { __proto__: null, ...consolePropAttributes, value: stdout },
194194
'_stderr': { __proto__: null, ...consolePropAttributes, value: stderr },
195195
});
196-
},
196+
}),
197197
},
198198
[kBindStreamsLazy]: {
199199
__proto__: null,
200200
...consolePropAttributes,
201201
// Lazily load the stdout and stderr from an object so we don't
202202
// create the stdio streams when they are not even accessed
203-
value: function(object) {
203+
value: assignFunctionName(kBindStreamsLazy, function(object) {
204204
let stdout;
205205
let stderr;
206206
ObjectDefineProperties(this, {
@@ -223,12 +223,12 @@ ObjectDefineProperties(Console.prototype, {
223223
set(value) { stderr = value; },
224224
},
225225
});
226-
},
226+
}),
227227
},
228228
[kBindProperties]: {
229229
__proto__: null,
230230
...consolePropAttributes,
231-
value: function(ignoreErrors, colorMode, groupIndentation = 2) {
231+
value: assignFunctionName(kBindProperties, function(ignoreErrors, colorMode, groupIndentation = 2) {
232232
ObjectDefineProperties(this, {
233233
'_stdoutErrorHandler': {
234234
__proto__: null,
@@ -263,12 +263,12 @@ ObjectDefineProperties(Console.prototype, {
263263
value: 'console',
264264
},
265265
});
266-
},
266+
}),
267267
},
268268
[kWriteToConsole]: {
269269
__proto__: null,
270270
...consolePropAttributes,
271-
value: function(streamSymbol, string) {
271+
value: assignFunctionName(kWriteToConsole, function(streamSymbol, string) {
272272
const ignoreErrors = this._ignoreErrors;
273273
const groupIndent = internalIndentationMap.get(this) || '';
274274

@@ -306,12 +306,12 @@ ObjectDefineProperties(Console.prototype, {
306306
} finally {
307307
stream.removeListener('error', noop);
308308
}
309-
},
309+
}),
310310
},
311311
[kGetInspectOptions]: {
312312
__proto__: null,
313313
...consolePropAttributes,
314-
value: function(stream) {
314+
value: assignFunctionName(kGetInspectOptions, function(stream) {
315315
let color = this[kColorMode];
316316
if (color === 'auto') {
317317
color = lazyUtilColors().shouldColorize(stream);
@@ -326,25 +326,25 @@ ObjectDefineProperties(Console.prototype, {
326326
}
327327

328328
return color ? kColorInspectOptions : kNoColorInspectOptions;
329-
},
329+
}),
330330
},
331331
[kFormatForStdout]: {
332332
__proto__: null,
333333
...consolePropAttributes,
334-
value: function(args) {
334+
value: assignFunctionName(kFormatForStdout, function(args) {
335335
const opts = this[kGetInspectOptions](this._stdout);
336336
ArrayPrototypeUnshift(args, opts);
337337
return ReflectApply(formatWithOptions, null, args);
338-
},
338+
}),
339339
},
340340
[kFormatForStderr]: {
341341
__proto__: null,
342342
...consolePropAttributes,
343-
value: function(args) {
343+
value: assignFunctionName(kFormatForStderr, function(args) {
344344
const opts = this[kGetInspectOptions](this._stderr);
345345
ArrayPrototypeUnshift(args, opts);
346346
return ReflectApply(formatWithOptions, null, args);
347-
},
347+
}),
348348
},
349349
});
350350

0 commit comments

Comments
 (0)