Skip to main content

Module util

Module util 

Source
Expand description

node:util.

Rendering (format, formatWithOptions, inspect) runs through the one Inspector the console global uses, so a value prints the same wherever it is printed.

The wrappers (promisify, callbackify, deprecate) hold their target through Function.prototype.bind rather than a Rust closure: a native closure that captured a JS value would form a GC cycle the runtime cannot trace, which aborts at teardown.

Constants§

UTIL_MEMBERS
The names util_object sets, for a module’s export list.

Functions§

util_object
Every util export on one object, for both the ES module and the require namespace.