diff options
author | Benjamin Zaslavsky <benjamin.zaslavsky@gmail.com> | 2017-11-14 23:59:57 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-11-18 12:38:59 +0100 |
commit | 45e6642476389fe5442c23b08a3ea99fcc752e56 (patch) | |
tree | 3f0f659e41d4d9c0d70258e35d5b691f4068e03f /lib/console.js | |
parent | 0a1fba02a65b0b6bb53ca2d6966eaca67265e7d6 (diff) | |
download | node-new-45e6642476389fe5442c23b08a3ea99fcc752e56.tar.gz |
console: add support for console.debug
Adds the console.debug() method, alias for console.log(). This method is
exposed by V8 and was only available in inspector until now. Also adds
matching test and documentation.
PR-URL: https://github.com/nodejs/node/pull/17033
Refs: https://github.com/nodejs/node/pull/17004
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/console.js')
-rw-r--r-- | lib/console.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/console.js b/lib/console.js index 2304a66687..4ac0634eee 100644 --- a/lib/console.js +++ b/lib/console.js @@ -134,6 +134,9 @@ Console.prototype.log = function log(...args) { }; +Console.prototype.debug = Console.prototype.log; + + Console.prototype.info = Console.prototype.log; |