Skip to content

lib: add console.{group,groupCollapsed,groupEnd}()

Rodrigo Muino Tomonari requested to merge github/fork/imyller/master into master

Implements nested console groups to match browser console API:

  • console.group()
  • console.groupCollapsed()
  • console.groupEnd()

Notes:

  • Starting a new group prefixes each line of output with two-spaces per group/indent level.
  • console API documentation is updated to include new functions.
  • Test case test-console-group.js is included.
  • console.groupCollapsed() is aliased to console.group() with a wrapper function so that external gui debuggers can handle it correctly. For example node-inspector.

Merge request reports

Loading