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

Already on GitHub? Sign in to your account

Improvements to util.inspect #2360

Closed
wants to merge 15 commits into
from
Commits on Feb 1, 2012
  1. Significant modifications to util.js. Changes includes new type detec…

    Brandon Benvie committed Dec 18, 2011
    …tion functions and new inspect formatting.
  2. Revert changes to the various isType functions. Make non-configurable…

    Brandon Benvie committed Dec 18, 2011
    … properties always display as constants instead of just capslock ones. Reorganize a bit to more closely match original organization of util.js.
  3. Change objectToString back to unbound function. Change quoting to be …

    Brandon Benvie committed Dec 23, 2011
    …more friendly to copy/pasting back into javascript. Show prototypes for constructors when using showHidden. Change check for labeling a color as constant when non-writable or getter with no setter.
  4. Change colors to identify hidden constants from enumerable constants,…

    Brandon Benvie committed Dec 23, 2011
    … rearrange the type colors a bit to work better.
  5. Fix quoting

    Brandon Benvie committed Dec 23, 2011
  6. Fix so sparse arrays aren't abbreviated. Fix quoting from adding an e…

    Brandon Benvie committed Dec 25, 2011
    …xtra slash sometimes. Add special arrows to non-color formatter. Match error formatting from prior version of inspect with brackets and all properties. Match prior version of formatting hidden names with brackets.
  7. Add Proxy, WeakMap, Set, and Map to list of known globals so testing …

    Brandon Benvie committed Dec 25, 2011
    …with --harmony is possible.
  8. Add tests for util.inspect

    Brandon Benvie committed Dec 25, 2011
    * Constructor detection and formatting
    * Quote formatting
    * Property name quoting
    * RegExp formatting
    * Accessor formatting
    * Circular references
    * Recurse limit
  9. Add tests for util.inspect

    Brandon Benvie committed Dec 25, 2011
    * Constructor detection and formatting
    * Quote formatting
    * Property name quoting
    * RegExp formatting
    * Accessor formatting
    * Circular references
    * Recurse limit
  10. Improve constructor detection. Make V8 c++ accessors no always show u…

    Brandon Benvie committed Dec 25, 2011
    …p as read only.
  11. Add in background colors ansi escape sequence list. Get branch up to …

    Brandon Benvie committed Feb 1, 2012
    …latest version. Add in a few fixes I've found along the way in the version I'm using outside of node core
Commits on Feb 3, 2012
  1. Missed different names in the merge, fixes the build

    Brandon Benvie committed Feb 3, 2012
  2. Fix some merge issues, add in showing of cistom [[protos]], fix spaci…

    Brandon Benvie committed Feb 3, 2012
    …ng a bit, set name variable separate from key so the raw key can be checked.
Commits on Feb 4, 2012
  1. Fix another issue with merge, looks good now.

    Brandon Benvie committed Feb 4, 2012