mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 15:14:33 +00:00
fix(cli/console): enclose symbol keys in brackets (#7642)
This encloses symbol keys when used in objects with brackets (e.g [Symbol("Symbol.iterator")]).
This commit is contained in:
parent
29dd62b08c
commit
d68fb81342
5 changed files with 16 additions and 13 deletions
|
@ -747,7 +747,7 @@
|
|||
}
|
||||
for (const key of symbolKeys) {
|
||||
entries.push(
|
||||
`${maybeQuoteSymbol(key)}: ${
|
||||
`[${maybeQuoteSymbol(key)}]: ${
|
||||
inspectValueWithQuotes(
|
||||
value[key],
|
||||
ctx,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue