sanctuary-js / sanctuary-def

Run-time type system for JavaScript
MIT License
294 stars 23 forks source link

use util.inspect.custom in recent versions of Node #208

Closed davidchambers closed 6 years ago

davidchambers commented 6 years ago

https://nodejs.org/api/deprecations.html:

DEP0079: Custom inspection function on Objects via .inspect()

Type: Runtime

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 may be specified.