mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
* 1st revision of new util.inspect impl. (not done)
* fix util.types.isArrayBuffer
* fix some utl tests and bugs
* fix node:tty missing primordials
* fix utl stackoverflow handling & some tests
* narrow down diff. context test
* util.inspect indirect circulars optimization
* temp workaround for buggy is...Function checks
* impl. Map/Set/Iterator entries inspection
* fix bigint & symbol objects inspection
* error inspection fixes
* misc util tests stuff
* inline getExternalValue stub
* leftovers
* util.inspect promise internals
* run bun fmt
* commit make js changes
* cut out unnecessary utl files
* reorganize utl folder structure
* remove browserify buffer check
* Try to revert git messing up uws somehow
This reverts commit 2c27e16e7d.
* commit src/js/out files again
* redo this edit too
* refresh js/out files
* Removed uws submodule
* tidy up
* unused primordials
* run fmt
---------
Co-authored-by: dave caruso <me@paperdave.net>
10 lines
342 B
JavaScript
10 lines
342 B
JavaScript
import assert from "assert";
|
|
import util, { inspect } from "util";
|
|
|
|
test("no assertion failures", () => {
|
|
assert.strictEqual(typeof util.inspect, "function");
|
|
assert.strictEqual(util.inspect, inspect);
|
|
assert.strictEqual(util.inspect(null), "null");
|
|
assert.strictEqual(util.inspect({ a: 1 }, { compact: false }), "{\n a: 1\n}");
|
|
});
|