aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/util
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2019-03-26 09:15:10 +0100
committerRuben Bridgewater <ruben@bridgewater.de>2019-03-28 12:24:51 +0100
commit4bfc06f6b5aa9278f4ed4b84d462448750c840c4 (patch)
treed3900e8b2f8b42dbf23bfaa206069068dbb8e5cb /lib/internal/util
parent3cf1ffebabf0f6a862ea80cd9cf14adbd073b3ef (diff)
downloadandroid-node-v8-4bfc06f6b5aa9278f4ed4b84d462448750c840c4.tar.gz
android-node-v8-4bfc06f6b5aa9278f4ed4b84d462448750c840c4.tar.bz2
android-node-v8-4bfc06f6b5aa9278f4ed4b84d462448750c840c4.zip
util: improve proxy inspection
This makes sure the brace is actually handled as any other brace. It was handled differently so far than any other brace and that had an impact on how the output would be formatted. PR-URL: https://github.com/nodejs/node/pull/26919 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/util')
-rw-r--r--lib/internal/util/inspect.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js
index dc0a1dcb27..06578cb56e 100644
--- a/lib/internal/util/inspect.js
+++ b/lib/internal/util/inspect.js
@@ -423,8 +423,7 @@ function formatProxy(ctx, proxy, recurseTimes) {
formatValue(ctx, proxy[1], recurseTimes)
];
ctx.indentationLvl -= 2;
- const str = reduceToSingleString(ctx, res, '', ['[', ']']);
- return `Proxy ${str}`;
+ return reduceToSingleString(ctx, res, '', ['Proxy [', ']']);
}
function findTypedConstructor(value) {