DEP0079: 通过 .inspect() 对对象进行自定义检查函数


类型: 生命结束

Type: End-of-Life

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.