Skip to content

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

Closed

Description

@BurtHarris
  • 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  │
// └─────────┴─────┴─────┘

Activity

  1. Trott commented on Apr 26, 2018

    @Trott
    Member

    @BurtHarris This will be fixed by #20323.

  2. added
    console
    on Apr 26, 2018
  3. Trott commented on Apr 28, 2018

    @Trott
    Member

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

  4. BurtHarris commented on Apr 28, 2018

    @BurtHarris
    Author

    Thanks @Trott

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    console

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions