Please sign in to comment.
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: #8071 PR-URL: #8174 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Michaël Zasso <firstname.lastname@example.org> Refs: #8437 Reviewed-By: James M Snell <email@example.com> Reviewed-By: Jeremiah Senkpiel <firstname.lastname@example.org>
- Loading branch information...
Showing with 109 additions and 21 deletions.