Files
bun.sh/src/js/internal/util
Jarred Sumner e3188c918a use Biome to format Bun's codebase instead of Prettier (#8494)
* Ignore

* Create biome.json

* Ignore

* biome

* [autofix.ci] apply automated fixes

---------

Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-25 19:15:26 -08:00
..

node-inspect-extracted

Vendored copy of node-inspect-extracted with adaptations for Bun. Some features not relevant to Bun have been removed. Others might be added or modified.

This library provides an as-faithful-as-possible implementation of Node.js's util.inspect function.

This is currently done for compatibility reasons. In the future, this should be replaced with a 100% native implementation.

API

The following util functions:

Known Limitations

  • Objects that have been mangled with Object.setPrototypeOf do not retain their original type information. [bug]
  • WeakMap and WeakSet will not show their contents, because those contents cannot be iterated over in unprivileged code.
  • Colorful stack traces are not completely accurate with respect to what modules are Node-internal. This doesn't matter on the Web.

LICENSE

This code is an adaptation of the Node.js internal implementation, mostly from the file lib/internal/util/inspect.js, which does not have the Joyent copyright header. The maintainers of this package will not assert copyright over this code, but will assign ownership to the Node.js contributors, with the same license as specified in the Node.js codebase; the portion adapted here should all be plain MIT license.