vscode-nodejs-repl icon indicating copy to clipboard operation
vscode-nodejs-repl copied to clipboard

Objects are shown inconsistently

Open Cypher1 opened this issue 5 years ago • 0 comments

let a = {};
a;

Shows [Object object]

let a = {foo: 3};
a;

Shows { foo: 3, }

It would be worth considering showing {} for the empty object case (with some annotation if this is unclear).

Also slight nit: The trailing inner comma probably should not be there.

Cypher1 avatar Mar 20 '20 23:03 Cypher1