summaryrefslogtreecommitdiff
path: root/lib/sys.js
AgeCommit message (Collapse)Author
2019-03-10benchmark,doc,lib,test: capitalize commentsRuben Bridgewater
PR-URL: https://github.com/nodejs/node/pull/26483 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
2017-03-10meta: restore original copyright headerJames M Snell
A prior io.js era commit inappropriately removed the original copyright statements from the source. This restores those in any files still remaining from that edit. Ref: https://github.com/nodejs/TSC/issues/174 Ref: https://github.com/nodejs/node/pull/10599 PR-URL: https://github.com/nodejs/node/pull/10155 Note: This PR was required, reviewed-by and approved by the Node.js Foundation Legal Committee and the TSC. There is no `Approved-By:` meta data.
2017-01-30lib: add static identifier codes for all deprecationsJames M Snell
Assigns a static identifier code to all runtime and documentation only deprecations. The identifier code is included in the emitted DeprecationWarning. Also adds a deprecations.md to the API docs to provide a central location where deprecation codes can be referenced and explained. PR-URL: https://github.com/nodejs/node/pull/10116 Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Michal Zasso <targos@protonmail.com> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
2016-09-02lib: use emitWarning instead of printDeprecationMessageJames M Snell
The process.emitWarning() API should be used for printing deprecation warning messages rather than directly using the internal/util#printDeprecationMessage PR-URL: https://github.com/nodejs/node/pull/8166 Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
2015-06-04util: introduce `printDeprecationMessage` functionVladimir Kurchatkin
`printDeprecationMessage` is used to deprecate modules and execution branches. PR-URL: https://github.com/nodejs/io.js/pull/1822 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-21lib: use const to define constantscjihrig
This commit replaces a number of var statements throughout the lib code with const statements. PR-URL: https://github.com/iojs/io.js/pull/541 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-01-13sys: Mark as deprecatedWyatt Preul
PR-URL: https://github.com/iojs/io.js/pull/317 Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> discussed at TC meeting, deprecate, don't remove
2015-01-12Remove excessive copyright/license boilerplateisaacs
The copyright and license notice is already in the LICENSE file. There is no justifiable reason to also require that it be included in every file, since the individual files are not individually distributed except as part of the entire package.
2014-11-22lib: turn on strict modeBen Noordhuis
Turn on strict mode for the files in the lib/ directory. It helps catch bugs and can have a positive effect on performance. PR-URL: https://github.com/node-forward/node/pull/64 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Fedor Indutny <fedor@indutny.com>
2012-06-28Fix #3577 Un-break require('sys')isaacs
2012-01-09require('sys') now throwsRyan Dahl
To be removed in v0.9
2011-12-14util: add internal function _deprecationWarning()Ben Noordhuis
2011-11-29sys: print stack trace if NODE_DEBUG=sysBen Noordhuis
2011-08-31Show warning when using lib/sys.jsMaciej Małecki
2011-03-14Update copyright headersRyan Dahl
2010-12-01lintRyan Dahl
2010-11-02Remove warning in 'sys' - too aggressiveRyan Dahl
2010-10-11Soft migration of sys -> util, Removal of deprecated utils module.Micheil Smith
2010-10-09Fix styleRyan Dahl
2010-10-09Use readline.columns in sys.inspect when possibleRyan Dahl
Though, this should probably be an option to sys.inspect and be set by REPL.
2010-10-09Commas last in sys.inspectRyan Dahl
Ugly? Yes. More readable by first time users? Yes.
2010-10-06syntax fixes to pass jslintJoshaven Potter
2010-09-19sys.js: --needless Object.keys() --needless .map() in a single patchJorge Chamorro Bieling
2010-09-19sys.js: sys.inspect: show function namesJorge Chamorro Bieling
2010-09-16Handle writeStream errors in sys.pumpRyan Dahl
2010-09-08add ANSI coloring option to sys.inspect and, by default, to the replTrent Mick
2010-08-30Pass an error to the sys.pump callback if one occursRussell Haering
- Add test case for pumping from unreadable stream. - Document the sys.pump error handling behavior
2010-08-22Missing 'var' in sys.inspect (Found by Oleg Slobodskoi)isaacs
2010-08-18Fix sys.inspect for regex in different context.Herbert Vojčík
2010-07-13Adds "pause" and "resume" events to pump and it's readable argument.Mikeal Rogers
2010-06-29sys.inherts to shadow constructor property from enumerabilityDmitry Baranovskiy
thanks to ES5 features in V8 it is quite easily possible.
2010-06-22Add sys.pumpMikeal Rogers
2010-06-15Coerce each argument to a String before attempting to print it via sys.printBen Lowery
2010-06-01Fix style in sys.jsRyan Dahl
2010-05-29Use duck-typing as well as instanceof in sys.inspectisaacs
This makes it so that inspecting objects from other contexts works as expected.
2010-05-28Check for a couple of edge cases on the inspect hook.Tim Caswell
Don't treat sys.inspect special, same with prototype objects.
2010-05-28Provide a hook for user-specified inspect functionsTim Caswell
2010-05-20Deprecate sys.p()Ryan Dahl
2010-04-11trailing whitespace fixesisaacs
2010-04-01Don't put an extra comma after bases in inspect.Tim Caswell
{ [Function] { [Function] , more: true => more: true , more2: true , more2: true , more3: true , more3: true , more3: true , more4: true , more3: true , more5: true } }
2010-03-17child process now use net.SocketRyan Dahl
2010-03-15Use streams for stdout and stdinRyan Dahl
2010-03-02Add sys.log()Ryan Dahl
2010-03-01Stop sys.inspect from adding extra new lines for deep objects that are ↵Benjamin Thomas
elements in an array. A couple other small fixes: If the keys of an object were all numeric they should be quoted. This way, you can now hypothetically copy and paste the output into your code (if the object doesn't contain any circular objects, deeply nested objects, Dates, RegExps or functions. I think). If a nested object isn't being recursed into, output "[Object]" as opposed to "[object Object]". If an object is longer than the max width but it is one line no matter what, then don't put the closing brace on a new line. Fix some formatting issues to try and match Node's style guidelines.
2010-03-01Move process.inherits to sysRyan Dahl
2010-02-25Make the output of sys.inspect a lot more compact.Benjamin Thomas
See: http://groups.google.com/group/nodejs/browse_thread/thread/ac060521e27fef65 By default now, sys.inspect doesn't recurse more than two times. Pass in null as the third parameter to make it recurse indefinitely.
2010-02-25Add optional third argument sys.inpect to indicate how many times you want ↵Benjamin Thomas
it to recurse
2010-02-19sys.exec() no longer uses PromiseRyan Dahl
2010-02-15sys.inspect(Date) now shows the date valueMark Hansen
2010-02-12Added multiple arg support for sys.puts(), print(), etc.visionmedia