Files
node/lib
Anna Henningsen a60ed89178 util: allow returning this from custom inspect
If a custom inspection function returned `this`, use that value
for further formatting instead of going into infinite recursion.

This is particularly useful when combined with `util.inspect.custom`
because returning `this` from such a method makes it easy to
have an `inspect()` function that is ignored by `util.inspect` without
actually having to provide an alternative for custom inspection.

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>
2016-08-25 07:18:12 +02:00
..
2015-10-08 17:32:08 -07:00
2016-08-13 08:38:37 +01:00
2016-08-22 11:07:05 -07:00
2016-05-18 02:12:28 -04:00
2016-06-17 17:03:49 +02:00
2016-08-10 23:41:28 +02:00