| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
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.
Refs: nodejs/node#31647
Refs: nodejs/node#31672
|
This shouldn’t land until the node one has landed. |
Sorry, something went wrong.
There was a problem hiding this comment.
Yes, we'll want to wait until a Node.js version with this symbol has been released. Thanks for the PR!
Sorry, something went wrong.
|
@goto-bus-stop Refs: https://nodejs.org/api/util.html#util_util_promisify_custom |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
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: