lib: add console.{group,groupCollapsed,groupEnd}()
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 toconsole.group()
with a wrapper function so that external gui debuggers can handle it correctly. For examplenode-inspector
.