0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-29 15:06:33 +01:00
nodejs/doc/api
ExE Boss ba684805b6
util: use a global symbol for util.promisify.custom
Define `util.promisify.custom`
as `Symbol.for("nodejs.util.inspect.custom")`, rather than
as `Symbol("util.inspect.custom")`.

This allows custom `promisify` wrappers to easily/safely be defined
in non‑Node.js environments.

Fixes: https://github.com/nodejs/node/issues/31647

PR-URL: https://github.com/nodejs/node/pull/31672
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2020-03-12 19:51:25 +01:00
..
addons.md doc: remove personal pronoun usage in addons.md 2020-03-09 19:47:24 -07:00
assert.md doc: update assert.rejects() docs with a validation function example 2020-02-24 03:49:12 -08:00
async_hooks.md 2020-03-11 Version 13.11.0 (Current) 2020-03-11 23:54:53 -04:00
buffer.md doc: improve Buffer documentation 2020-03-11 17:07:39 +01:00
child_process.md doc: clear up child_process command resolution 2020-03-11 17:36:17 +01:00
cli.md cli: allow --jitless V8 flag in NODE_OPTIONS 2020-03-09 13:14:51 -07:00
cluster.md
console.md
crypto.md doc,crypto: re-document oaepLabel option 2020-02-23 01:25:40 -04:00
debugger.md doc: reword possessive form of Node.js in debugger.md 2020-02-17 17:32:53 -08:00
deprecations.md http: move OutboundMessage.prototype.flush to EOL 2020-02-24 08:46:37 -08:00
dgram.md doc: standardize on "host name" in dgram.md 2020-01-14 10:17:19 -08:00
dns.md doc: improve dns introduction 2019-12-27 06:14:41 -08:00
documentation.md doc: add link to sem-ver info 2020-03-02 04:07:33 +00:00
domain.md doc,domain: use code markup/markdown in headers 2019-12-26 21:39:24 -08:00
errors.md doc: remove personal pronoun usage in errors.md 2020-03-09 19:47:26 -07:00
esm.md doc: document self-referencing a package name 2020-03-09 12:36:13 +01:00
events.md 2020-01-07, Version v13.6.0 (Current) 2020-01-08 00:10:43 +01:00
fs.md 2020-03-11 Version 13.11.0 (Current) 2020-03-11 23:54:53 -04:00
globals.md doc: use code markup/markdown in headers in globals documentation 2019-12-26 21:39:26 -08:00
http2.md doc,test: add server.timeout property to http2 public API 2020-03-11 19:33:48 +01:00
http.md http: fix socket re-use races 2020-03-07 20:51:12 +01:00
https.md doc: fix typos in doc/api/https.md 2020-02-16 16:58:39 +01:00
index.md
inspector.md doc,inspector: use code markup/markdown in headers 2019-12-26 21:39:27 -08:00
intl.md
modules.md doc: include the error type in the request.resolve doc 2020-03-11 17:41:54 +01:00
n-api.md n-api: define release 6 2020-03-09 11:58:51 -07:00
net.md doc: remove em dashes 2020-03-05 22:25:42 -08:00
os.md 2020-03-11 Version 13.11.0 (Current) 2020-03-11 23:54:53 -04:00
path.md doc: remove em dashes 2020-03-05 22:25:42 -08:00
perf_hooks.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
policy.md doc: remove personal pronoun usage in policy.md 2020-03-09 19:47:29 -07:00
process.md doc: clarify windows specific behaviour 2020-03-11 17:34:25 +01:00
punycode.md doc,punycode: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
querystring.md doc,querystring: use code markup/markdown in headers 2019-12-26 21:39:30 -08:00
readline.md doc: updated YAML version representation in readline.md 2020-02-25 13:53:22 -08:00
repl.md doc: reword possessive form of Node.js in repl.md 2020-02-12 00:20:37 -08:00
report.md 2020-02-18, Version 13.9.0 (Current) 2020-02-18 12:40:21 -08:00
stream.md 2020-03-04 Version 13.10.0 (Current) 2020-03-04 09:53:11 -08:00
string_decoder.md doc: add support encoding link on string_decoder.md 2020-03-11 17:06:13 +01:00
synopsis.md
timers.md doc,timers: use code markup/markdown in headers 2019-12-26 21:39:32 -08:00
tls.md 2020-03-04 Version 13.10.0 (Current) 2020-03-04 09:53:11 -08:00
tracing.md
tty.md doc,tty: use code markup/markdown in headers 2019-12-26 21:39:33 -08:00
url.md doc: remove em dashes 2020-03-05 22:25:42 -08:00
util.md util: use a global symbol for util.promisify.custom 2020-03-12 19:51:25 +01:00
v8.md doc: clarify that v8.serialize() is not deterministic 2020-01-30 16:35:47 -08:00
vm.md 2020-03-04 Version 13.10.0 (Current) 2020-03-04 09:53:11 -08:00
wasi.md wasi: add returnOnExit option 2020-03-08 11:05:23 -04:00
worker_threads.md doc: change worker.takeHeapSnapshot to getHeapSnapshot 2020-03-10 10:21:52 -07:00
zlib.md doc: update zlib doc 2020-02-26 16:56:16 -08:00