DEP0079:通过 .inspect() 对对象进行自定义检查函数
¥DEP0079: Custom inspection function on objects via .inspect()
类型:生命结束
¥Type: End-of-Life
不推荐使用对象上名为 inspect
的属性来指定 util.inspect()
的自定义检查函数。改用 util.inspect.custom
。为了与版本 6.4.0 之前的 Node.js 向后兼容,可以指定两者。
¥Using a property named inspect
on an object to specify a custom inspection
function for util.inspect()
is deprecated. Use util.inspect.custom
instead. For backward compatibility with Node.js prior to version 6.4.0, both
can be specified.