Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 10 DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated #545

Closed
OliverJAsh opened this issue Aug 12, 2018 · 1 comment

Comments

@OliverJAsh
Copy link
Collaborator

Using Node 10, I get this warning when logging an option:

DeprecationWarning: Custom inspection function on Objects via .inspect() is deprecated

I believe this is because the type implements an inspect function, which is used to format the string when logging.

We should update this to instead use the new symbol based API: https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects

@gcanti
Copy link
Owner

gcanti commented Aug 12, 2018

Duplicate of #408

@gcanti gcanti marked this as a duplicate of #408 Aug 12, 2018
@gcanti gcanti closed this as completed Aug 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants