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

util: change inspect depth #22846

Closed
wants to merge 2 commits into from
Closed

Commits on Sep 24, 2018

  1. util: change util.inspect depth default

    The current default is not ideal in most use cases. Therefore it is
    changed to inspect objects to a maximum depth of 20 in case
    util.inspect is called with it's defaults. The default is kept at 2
    when using console.log() and similar in the repl.
    
    PR-URL: nodejs#17907
    Refs: nodejs#12693
    BridgeAR committed Sep 24, 2018
    Configuration menu
    Copy the full SHA
    b6fa43d View commit details
    Browse the repository at this point in the history
  2. util: change %o depth default

    Since the default for depth is changed to `20` it is logical
    to change the %o default as well. It will now always use the
    default depth.
    
    PR-URL: nodejs#17907
    Refs: nodejs#12693
    BridgeAR committed Sep 24, 2018
    Configuration menu
    Copy the full SHA
    fdfcd24 View commit details
    Browse the repository at this point in the history