0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/lib
ohbarye 0c852a1795
console: .table fall back to logging for function too
According to the console.table documentation, it reads that it "falls
back to just logging the argument if it can’t be parsed as tabular."

But it doesn't fall back when I give a function as its first argument.
It logs an empty table. This is fixes by this commit.

PR-URL: https://github.com/nodejs/node/pull/20681
Fixes: https://github.com/nodejs/node/issues/20679
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
2018-05-18 15:53:06 +02:00
..
internal stream: lazy load end-of-stream 2018-05-18 15:27:29 +02:00
_http_agent.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
_http_client.js http: make client .aborted boolean 2018-05-14 23:05:09 +03:00
_http_common.js http: remove duplicate parser unset 2018-04-23 15:59:28 +02:00
_http_incoming.js http: added aborted property to request 2018-04-26 19:38:27 +02:00
_http_outgoing.js http: refactor outgoing headers processing 2018-04-27 20:31:25 +02:00
_http_server.js http: always emit close on req and res 2018-05-13 16:23:50 -07:00
_stream_duplex.js stream: only check options once in Duplex ctor 2018-04-28 17:13:55 +02:00
_stream_passthrough.js
_stream_readable.js stream: lazy load ReadableAsyncIterator 2018-05-18 15:27:29 +02:00
_stream_transform.js
_stream_wrap.js
_stream_writable.js stream: simplify writable's validChunk() 2018-05-14 13:30:56 -04:00
_tls_common.js tls: specify options.name in validateKeyCert 2018-04-27 07:12:26 +02:00
_tls_wrap.js tls: remove sharedCreds in Server constructor 2018-05-06 21:13:31 +02:00
.eslintrc.yaml tools: stricter eslint rule for globals 2018-05-18 15:27:29 +02:00
assert.js assert,util: lazy load comparison functions 2018-05-18 15:27:29 +02:00
async_hooks.js
buffer.js errors: validate input arguments 2018-04-13 19:59:44 +02:00
child_process.js child_process: fix exec set stdout.setEncoding 2018-05-18 15:20:28 +02:00
cluster.js
console.js console: .table fall back to logging for function too 2018-05-18 15:53:06 +02:00
constants.js constants: freeze the constants object 2018-05-07 14:26:11 +02:00
crypto.js
dgram.js dns: lazy loaded 2018-05-18 15:25:42 +02:00
dns.js errors: alter ERR_INVALID_IP_ADDRESS 2018-04-14 10:55:35 -07:00
domain.js domain: converted anonymous to named function 2018-04-17 23:44:14 -07:00
events.js events: optimize condition for optimal scenario 2018-05-03 14:45:09 +02:00
fs.js fs: lazy load createPromise/promiseResolve 2018-05-17 20:18:51 -07:00
http2.js
http.js http: support server options on createServer 2018-03-25 11:51:32 +02:00
https.js https: defines maxHeadersCount in the constructor 2018-05-05 13:57:07 +02:00
inspector.js
module.js
net.js net: lazy load dns 2018-05-18 15:27:29 +02:00
os.js lib: remove unnecessary assignment of exports 2018-04-22 11:39:16 +02:00
path.js
perf_hooks.js perf_hooks: simplify perf_hooks 2018-04-03 13:57:41 -07:00
process.js
punycode.js
querystring.js tools: add 'spaced-comment' into eslint rules 2018-04-01 22:33:13 +08:00
readline.js string_decoder: lazy loaded 2018-05-18 15:25:38 +02:00
repl.js repl: add friendly tips about how to exit repl 2018-05-18 15:47:17 +02:00
stream.js stream: add pipeline and finished 2018-04-16 16:02:12 +02:00
string_decoder.js
sys.js
timers.js timers: named anonymous functions 2018-05-02 22:32:24 -07:00
tls.js tls: move convertNPNProtocols to End-of-Life 2018-05-17 09:53:44 -07:00
trace_events.js trace_events: adds a new trace_events api 2018-04-17 08:30:20 -07:00
tty.js readline: lazy loaded 2018-05-18 15:25:40 +02:00
url.js lib: remove unnecessary require 2018-05-18 15:32:05 +02:00
util.js assert,util: lazy load comparison functions 2018-05-18 15:27:29 +02:00
v8.js lib: remove unnecessary assignment of exports 2018-04-22 11:39:16 +02:00
vm.js lib: introduce internal/validators 2018-04-26 19:42:48 +02:00
zlib.js zlib: fix windowBits validation to allow 0 for decompression mode 2018-04-10 00:56:10 +02:00