Files
node/lib
Anna Henningsen e9c4805c1f 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>

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:03 -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