From d68fb813428f31b21b8a46cdde21d9ab5170abdc Mon Sep 17 00:00:00 2001 From: Casper Beyer Date: Wed, 23 Sep 2020 19:58:28 +0800 Subject: fix(cli/console): enclose symbol keys in brackets (#7642) This encloses symbol keys when used in objects with brackets (e.g [Symbol("Symbol.iterator")]). --- cli/rt/02_console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/rt/02_console.js') 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, -- cgit v1.2.3