summaryrefslogtreecommitdiff
path: root/cli/rt/02_console.js
diff options
context:
space:
mode:
authorCasper Beyer <caspervonb@pm.me>2020-09-23 19:58:28 +0800
committerGitHub <noreply@github.com>2020-09-23 13:58:28 +0200
commitd68fb813428f31b21b8a46cdde21d9ab5170abdc (patch)
tree8d3d162120c89be35144c43ded3a431b0e777d60 /cli/rt/02_console.js
parent29dd62b08cc1a6a95b242b7269fe1b8deefa7a24 (diff)
fix(cli/console): enclose symbol keys in brackets (#7642)
This encloses symbol keys when used in objects with brackets (e.g [Symbol("Symbol.iterator")]).
Diffstat (limited to 'cli/rt/02_console.js')
-rw-r--r--cli/rt/02_console.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/rt/02_console.js b/cli/rt/02_console.js
index 5de0bfa60..ae17d4199 100644
--- a/cli/rt/02_console.js
+++ b/cli/rt/02_console.js
@@ -747,7 +747,7 @@
}
for (const key of symbolKeys) {
entries.push(
- `${maybeQuoteSymbol(key)}: ${
+ `[${maybeQuoteSymbol(key)}]: ${
inspectValueWithQuotes(
value[key],
ctx,