diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/util.js b/lib/util.js index ef28427cd8..f48d93d124 100644 --- a/lib/util.js +++ b/lib/util.js @@ -174,17 +174,8 @@ function formatWithOptions(inspectOptions, ...args) { while (a < args.length) { const value = args[a]; - // TODO(BridgeAR): This should apply for all besides strings. Especially - // BigInt should be properly inspected. str += join; - if (typeof value !== 'string' && - typeof value !== 'boolean' && - // eslint-disable-next-line valid-typeof - typeof value !== 'bigint') { - str += inspect(value, inspectOptions); - } else { - str += value; - } + str += typeof value !== 'string' ? inspect(value, inspectOptions) : value; join = ' '; a++; } |