summaryrefslogtreecommitdiff
path: root/lib/console.js
Commit message (Collapse)AuthorAgeFilesLines
* console: allow Object.prototype fields as labelsJulien Gilli2015-02-171-7/+34
| | | | | | | | | | | | | | | | | | | | | | | | This is a backport of 6c3647c38d73f729ce85633a0440cd939d93dea2 from v0.12 to v0.10. Console.prototype.timeEnd() returns NaN if the timer label corresponds to a property on Object.prototype. In v0.12, this was fixed by using Object.create(null) to construct the _times object However, the version of V8 in the v0.10 branch makes this fix not work as expected. In v0.10, this commit changes the _times object into a array of objects of the form: { label: someLabel, time: staringWallClockTime } someLabel can thus be any string, including any string that represents any Object.prototype field. Fixes #9116. PR: #9215 PR-URL: https://github.com/joyent/node/pull/9215 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
* console: Support formatting options in trace()isaacs2013-01-181-2/+2
| | | | Fix #4589
* console: refactor the console module to be reusableNathan Rajlich2012-08-241-17/+48
| | | | | | | So that multiple instances can be created pointing to different writable streams. This is needed for #3876.
* console: throw when no such label exists in `console.timeEnd`Maciej MaƂecki2012-04-291-1/+5
| | | | Test included.
* Fixes #1860. Remove process.writeErrorRyan Dahl2011-10-181-2/+1
| | | | Breaks a few tests in "make test-message"
* Remove tty_legacyRyan Dahl2011-10-111-1/+1
|
* util: add sprintf-like format() functionBen Noordhuis2011-07-301-40/+4
| | | | Fixes #1407.
* Update copyright headersRyan Dahl2011-03-141-0/+21
|
* Another fix for process.assertRyan Dahl2011-01-271-1/+1
|
* use util.inspect to format objects and arrays printed to the consoleSami Samhuri2010-12-301-5/+11
|
* more lintRyan Dahl2010-12-011-10/+10
|
* Lazy load console objectRyan Dahl2010-11-301-0/+83