Skip to content

util.inspect generates different output in Node minor update #8138

Closed
@maxrimue

Description

@maxrimue
  • Version: v6.4.0
  • Platform: Darwin 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64
  • Subsystem: util/utilities

Since the update from Node.js v6.3 to Node.js v6.4, util.inspect generates a different output for the same object. This broke our tests and I'm not 100% sure if this is intended to happen.

Take this object:

{ desc: 'A command with no name',
  builder: [Function],
  handler: [Function] }

Then, running util.inspect on it:
Node v6.3:

'{ desc: \'A command with no name\',\n  builder: [ [Function: Function] ],\n  handler: [ [Function: Function] ] }'

Node v6.4:

'{ desc: \'A command with no name\',\r\n  builder: [ [Function: Function] ],\r\n  handler: [ [Function: Function] ] }'

Thanks

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