Skip to content

Deprecate object.inspect for custom inspection #15549

Closed
@jakearchibald

Description

@jakearchibald

https://nodejs.org/api/util.html#util_custom_inspection_functions_on_objects

The use of obj.inspect as part of inspecting (and therefore console.log) seems to catch people out https://twitter.com/wSokra/status/910070904666943489.

Given that there's a Symbol now, is there a plan to deprecate obj.inspect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    utilIssues and PRs related to the built-in util module.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions