0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc
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
..
api util: use a global symbol for util.promisify.custom 2020-03-12 19:51:25 +01:00
api_assets doc: prevent tables from shrinking page 2020-03-11 16:59:16 +01:00
changelogs doc: add missing link for v13.11.0 changelog 2020-03-12 01:02:16 -04:00
guides benchmark: add test and all options and improve errors" 2020-03-09 22:35:53 +01:00
.eslintrc.yaml tools: lint doc code examples in strict mode 2018-07-06 08:45:34 +03:00
abi_version_registry.json doc: claim ABI version 82 for Electron 10 2020-02-16 16:55:42 +01:00
first_timer_badge.png
full-white-stripe.jpg
node.1 cli: allow --jitless V8 flag in NODE_OPTIONS 2020-03-09 13:14:51 -07:00
osx_installer_logo.png
template.html doc: specify display=fallback for Google Fonts 2019-09-26 22:46:34 -07:00
thin-white-stripe.jpg