Skip to content

util: faulty inspect output #15288

@BridgeAR

Description

@BridgeAR
  • Version: all
  • Platform: all
  • Subsystem: util
const a = []
a["00"] = true
Object.keys(a)
// [ '00' ]
util.inspect(a)
// Node.js < 8.4 will log
// '[  ]'
// Node.js 8.4 and master will log
// '[ true ]'
// It should be
// '[ \'00\': true ]'

Metadata

Metadata

Assignees

No one assigned

    Labels

    utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions