Closed
Description
- 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