0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
Ruben Bridgewater 5518664d41
util: if present, fallback to toString using the %s formatter
This makes sure that `util.format` uses `String` to stringify an object
in case the object has an own property named `toString` with type
`function`. That way objects that do not have such function are still
inspected using `util.inspect` and the old behavior is preserved as
well.

PR-URL: https://github.com/nodejs/node/pull/27621
Refs: https://github.com/facebook/jest/issues/8443
Reviewed-By: Roman Reiss <me@silverwind.io>
2019-05-20 14:18:18 +02:00
..
addons.md doc: hello addon example should return "world" 2019-03-05 23:54:31 +01:00
assert.md tools: prohibit assert.doesNotReject() in Node.js core 2019-04-27 18:22:27 +02:00
async_hooks.md src: do not reuse async resource in http parsers 2019-04-22 11:51:46 -07:00
buffer.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
child_process.md child_process: change the defaults maxBuffer size 2019-04-17 14:05:15 -07:00
cli.md bootstrap: --frozen-intrinsics unfreeze console 2019-05-20 05:21:01 +02:00
cluster.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
console.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
crypto.md doc: improve CCM example 2019-05-06 21:40:07 +02:00
debugger.md
deprecations.md doc: doc deprecate the legacy http parser 2019-05-09 15:30:58 -04:00
dgram.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
dns.md doc: dns.lookup() documentation error code 2019-05-13 16:57:07 -07:00
documentation.md doc: rewrite "About this Documentation" section 2019-05-19 23:06:59 +02:00
domain.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
errors.md repl: handle uncaughtException properly 2019-05-08 08:15:15 +02:00
esm.md esm: --experimental-wasm-modules integration support 2019-05-17 02:25:20 +02:00
events.md 2019-03-28, Version 11.13.0 (Current) 2019-03-28 20:23:29 +01:00
fs.md doc: clarify behavior of fs.mkdir 2019-05-19 09:35:26 -07:00
globals.md lib: move queueMicrotask to stable 2019-03-08 08:19:38 -06:00
http2.md http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
http.md http, http2: remove default server timeout 2019-05-09 08:54:04 -07:00
https.md http: servername === false should disable SNI 2019-04-30 06:43:22 -07:00
index.md doc: add node-report documentation 2019-01-18 10:35:55 +05:30
inspector.md doc: add inspector API example for heapdump 2019-03-11 06:19:11 +01:00
intl.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
modules.md 2019-05-07, Version 12.2.0 (Current) 2019-05-07 20:38:46 +02:00
n-api.md doc: remove stability highlight for stable functions 2019-05-19 23:07:16 -07:00
net.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
os.md doc: fix section sorting, add link reference 2019-04-03 22:44:53 +03:00
path.md doc: fix extname with the correct description 2019-04-20 17:01:09 +03:00
perf_hooks.md benchmark,doc,lib,test: capitalize comments 2019-03-10 00:44:40 +01:00
policy.md doc: fix metadata for v11.8.0 doc changes 2019-01-25 19:09:26 -08:00
process.md 2019-04-23, Version 12.0.0 (Current) 2019-04-23 16:46:54 +01:00
punycode.md
querystring.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
readline.md 2019-04-11, Version 11.14.0 (Current) 2019-04-11 17:56:55 +01:00
repl.md repl: handle uncaughtException properly 2019-05-08 08:15:15 +02:00
report.md report: print common items first for readability 2019-04-27 12:04:36 +02:00
stream.md stream: use readableObjectMode public api for js stream 2019-05-19 23:37:51 +02:00
string_decoder.md
synopsis.md doc: sort bottom-of-file markdown links 2018-11-28 13:09:31 -08:00
timers.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00
tls.md tls: expose built-in root certificates 2019-05-20 11:09:02 +02:00
tracing.md doc,lib,test: capitalize comment sentences 2018-12-17 17:14:35 +01:00
tty.md doc: specify return type for tty.isatty() 2019-04-09 23:06:46 +03:00
url.md doc: list all versions WHATWG URL api was added 2018-12-05 15:08:38 -08:00
util.md util: if present, fallback to toString using the %s formatter 2019-05-20 14:18:18 +02:00
v8.md doc: remove outdated link 2019-04-09 16:43:04 -04:00
vm.md doc: fix section order in vm.md 2019-01-14 09:36:41 +01:00
worker_threads.md worker: add ability to unshift message from MessagePort 2019-05-19 22:01:34 +02:00
zlib.md benchmark,doc,lib: capitalize more comments 2019-03-27 17:20:06 +01:00