util: pass opts to custom inspect functions
authorTimothy J Fontaine <tjfontaine@gmail.com>
Thu, 22 Aug 2013 01:38:23 +0000 (18:38 -0700)
committerisaacs <i@izs.me>
Thu, 22 Aug 2013 23:54:17 +0000 (16:54 -0700)
commit546ae2eef90c4ef0eb30ef4f52402e3c45e2f3f2
treea4ba51e744d401112d284974494cb8fc7b7e9487
parentfa89cf545cad2ae6fc2ed15006b9c118cb9077d2
util: pass opts to custom inspect functions

Objects with custom inpsect functions should get the options that were
passed to `util.inspect()`

fixes #5822
fixes #6098
doc/api/util.markdown
lib/util.js
test/simple/test-util-inspect.js