Open ExE-Boss opened 4 years ago
Define util.promisify.custom as:
util.promisify.custom
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.
promisify
This shouldn’t land until the node one has landed.
@goto-bus-stop This is now shipping in Node since v12.16.2/v13.12.0.
Refs: https://nodejs.org/api/util.html#util_util_promisify_custom
Define
util.promisify.custom
as:rather than as:
This allows custom
promisify
wrappers to easily/safely be defined in non‑Node.js environments.See also: