diff options
Diffstat (limited to 'lib/internal/util/inspect.js')
-rw-r--r-- | lib/internal/util/inspect.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js index 8ab3df8b63..de044447b3 100644 --- a/lib/internal/util/inspect.js +++ b/lib/internal/util/inspect.js @@ -1621,7 +1621,6 @@ function formatWithOptions(inspectOptions, ...args) { tempStr = inspect(args[++a], inspectOptions); break; case 111: // 'o' - { tempStr = inspect(args[++a], { ...inspectOptions, showHidden: true, @@ -1629,7 +1628,6 @@ function formatWithOptions(inspectOptions, ...args) { depth: 4 }); break; - } case 105: // 'i' const tempInteger = args[++a]; if (typeof tempInteger === 'bigint') { @@ -1648,6 +1646,10 @@ function formatWithOptions(inspectOptions, ...args) { tempStr = formatNumber(stylizeNoColor, parseFloat(tempFloat)); } break; + case 99: // 'c' + a += 1; + tempStr = ''; + break; case 37: // '%' str += first.slice(lastPos, i); lastPos = i + 1; |