Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

console.table not operating as documented (Windows 10) #20345

Closed
BurtHarris opened this issue Apr 26, 2018 · 3 comments
Closed

console.table not operating as documented (Windows 10) #20345

BurtHarris opened this issue Apr 26, 2018 · 3 comments
Labels
console Issues and PRs related to the console subsystem.

Comments

@BurtHarris
Copy link

BurtHarris commented Apr 26, 2018

  • v10.0.0:
  • Microsoft Windows [Version 10.0.17133.73] 64-bit:
  • console:

Repl demo using sample from docs:

> console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
┌─────────┬──────────────────┐
│ (index) │      Values      │
├─────────┼──────────────────┤
│    0    │ { a: 1, b: 'Y' } │
│    1    │ { a: 'Z', b: 2 } │
└─────────┴──────────────────┘

Expected a three column table with headings ['(index)', 'a', 'b'], per docs:

console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]);
// ┌─────────┬─────┬─────┐
// │ (index) │  a  │  b  │
// ├─────────┼─────┼─────┤
// │    0    │  1  │ 'Y' │
// │    1    │ 'Z' │  2  │
// └─────────┴─────┴─────┘
@Trott
Copy link
Member

Trott commented Apr 26, 2018

@BurtHarris This will be fixed by #20323.

@vsemozhetbyt vsemozhetbyt added the console Issues and PRs related to the console subsystem. label Apr 26, 2018
@Trott
Copy link
Member

Trott commented Apr 28, 2018

Fixed in 99d56a4 which should be in the next release of Node.js 10.x.

@Trott Trott closed this as completed Apr 28, 2018
@BurtHarris
Copy link
Author

Thanks @Trott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Issues and PRs related to the console subsystem.
Projects
None yet
Development

No branches or pull requests

3 participants