Files
node/lib
Anna Henningsen 4cb55ff392 util: allow symbol-based custom inspection methods
Add a `util.inspect.custom` Symbol which can be used to customize
`util.inspect()` output. Providing `obj[util.inspect.custom]`
works like providing `obj.inspect`, except that the former allows
avoiding name clashes with other `inspect()` methods.

Fixes: https://github.com/nodejs/node/issues/8071
PR-URL: https://github.com/nodejs/node/pull/8174
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>

Refs: https://github.com/nodejs/node/pull/8437
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2016-09-09 11:06:02 -04:00
..
2015-10-08 17:32:08 -07:00
2016-08-24 08:01:59 -05:00
2016-03-21 15:48:51 -07:00
2016-07-05 22:09:12 +02:00
2016-06-02 22:37:00 +10:00
2016-07-05 22:10:22 +02:00
2016-08-25 10:33:48 -07:00
2016-08-11 10:58:11 -04:00