diff options
author | Benjamin Zaslavsky <benjamin.zaslavsky@gmail.com> | 2017-11-20 17:12:20 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-12-04 00:07:57 +0100 |
commit | c84710d062dfa4b39f0aa819a61c91d513ab5d1b (patch) | |
tree | c03e7a07c1fca1a12e01103679b53aaff3846dfd /lib/console.js | |
parent | 254b5f04e7b309146cb8ade1d1fb0b804b964a51 (diff) | |
download | node-new-c84710d062dfa4b39f0aa819a61c91d513ab5d1b.tar.gz |
console: make dirxml an alias for console.log
This method was previously exposed by V8 (since node 8.0.0) but not
implemented in node.
PR-URL: https://github.com/nodejs/node/pull/17152
Refs: https://github.com/nodejs/node/issues/17128
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Rich Trott <rtrott@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 4ac0634eee..8be06935de 100644 --- a/lib/console.js +++ b/lib/console.js @@ -162,6 +162,9 @@ Console.prototype.dir = function dir(object, options) { }; +Console.prototype.dirxml = Console.prototype.log; + + Console.prototype.time = function time(label = 'default') { // Coerces everything other than Symbol to a string label = `${label}`; |