aboutsummaryrefslogtreecommitdiff
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js
index fdc4a9b3b6..fea6471de6 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -400,7 +400,7 @@ function formatValue(ctx, value, recurseTimes) {
if (typeof value === 'function') {
const ctorName = constructor ? constructor.name : 'Function';
return ctx.stylize(
- `[${ctorName}${value.name ? `: ${value.name}` : ''}]`, 'special');
+ `[${ctorName}${value.name ? `: ${value.name}` : ''}]`, 'special');
}
if (isRegExp(value)) {
return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');
@@ -695,7 +695,7 @@ function formatTypedArray(ctx, value, recurseTimes, visibleKeys, keys) {
for (const key of keys) {
if (typeof key === 'symbol' || !numbersOnlyRE.test(key)) {
output.push(
- formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
+ formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));
}
}
return output;