Majid Arif Siddiqui
176f0bd3df
lib: improved forEach object performance
Reviewed-by: Trevor Norris <trev.norris@gmail.com>
11 years ago
Xavi Magrinyà
1cd48c7ae5
console: console.dir() accepts options object
This features comes from the need of adding extra options when displaying
the object using console.dir().
console.dir() accepts now a second parameter that is passed to util.inspect()
in order to provide extra options to the output. These options are: depth, color
and showHidden. More information about these options in util.inspect() documentation.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
Xavi Magrinyà
e00cafa311
Added support for options parameter in console.dir()
Signed-off-by: Fedor Indutny <fedor@indutny.com>
11 years ago
isaacs
22c68fdc1d
src: Replace macros with util functions
12 years ago
Ben Noordhuis
0330bdf519
lib: macro-ify type checks
Increases the grep factor. Makes it easier to harmonize type checks
across the code base.
12 years ago
Nathan Rajlich
da8b0eefde
console: `console.dir()` bypasses inspect() methods
Use the `customInspect: false` option of `util.inspect()` to bypass any custom
inspect() function on the object being logged.
Closes #2717 .
12 years ago
isaacs
539bf1d7b7
console: Support formatting options in trace()
Fix #4589
12 years ago
Nathan Rajlich
025f53c306
console: refactor the console module to be reusable
So that multiple instances can be created pointing
to different writable streams.
This is needed for #3876 .
13 years ago
Maciej Małecki
77c18d1e1b
console: throw when no such label exists in `console.timeEnd`
Test included.
13 years ago
Ryan Dahl
d77ce4b998
Fixes #1860 . Remove process.writeError
Breaks a few tests in "make test-message"
13 years ago
Ryan Dahl
cdf5d91fe5
Remove tty_legacy
13 years ago
Ben Noordhuis
874260b40f
util: add sprintf-like format() function
Fixes #1407 .
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
bfb6a67d60
Another fix for process.assert
14 years ago
Sami Samhuri
e5a47c8ce1
use util.inspect to format objects and arrays printed to the console
14 years ago
Ryan Dahl
f22c248e4c
more lint
14 years ago
Ryan Dahl
70188499b0
Lazy load console object
14 years ago