Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
b366755
util: port node v26.3.0 styleText, getCallSites, and regexp highlighting
cirospaciari Jul 17, 2026
05fc2be
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 17, 2026
4fdad1f
util: address review — fix boxed-string deepEquals perf and getCallSi…
cirospaciari Jul 17, 2026
e4914bf
util: fix CI failures — lint, stale styleText assertions, styletext T…
cirospaciari Jul 17, 2026
521eb17
util: vm module namespaces get a null prototype, port v26 inspect fixes
cirospaciari Jul 17, 2026
b63bf90
util: address review — keep loose deepEquals on node's behavior, lazy…
cirospaciari Jul 17, 2026
6dd7fa7
util: fix lint, sync the vendored inspect test to v26's bracketed get…
cirospaciari Jul 17, 2026
8072986
util: give the styletext tests a deterministic color environment
cirospaciari Jul 17, 2026
7491ac7
util: keep hex coverage bun-side, gate the wrapper check on ObjectType
cirospaciari Jul 17, 2026
e6dfacd
fs: don't throw from WriteStream when the fd has no writable sink
cirospaciari Jul 17, 2026
7ff738e
Merge branch 'main' into claude/node-util-v26-compat
cirospaciari Jul 17, 2026
be5cfc8
util: address review findings from the merge round
robobun Jul 17, 2026
f626428
[autofix.ci] apply automated fixes
autofix-ci[bot] Jul 17, 2026
9151219
util: drop upstream's speculative groupType note from highlightRegExp
robobun Jul 17, 2026
c46c84b
Merge branch 'main' into claude/node-util-v26-compat
cirospaciari Jul 19, 2026
2a1ad47
deepEquals: run byte checks before routing typed-arrays-with-extras t…
robobun Jul 19, 2026
3afe0ab
Merge branch 'main' into claude/node-util-v26-compat
dylan-conway Jul 21, 2026
55ab9dc
Merge remote-tracking branch 'origin/main' into claude/node-util-v26-…
robobun Jul 22, 2026
7b1d0c7
Merge branch 'main' into claude/node-util-v26-compat
cirospaciari Jul 24, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions scripts/runner.node.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -758,6 +758,13 @@ async function runTests() {
NO_COLOR: "1",
BUN_DEBUG_QUIET_LOGS: "1",
};
if (title.includes("test-util-styletext")) {
// These assert styleText's own color decisions, so neither the forced
// no-color settings above nor spawnBun's FORCE_COLOR may reach them.
env.FORCE_COLOR = undefined;
env.NO_COLOR = undefined;
env.NODE_DISABLE_COLORS = undefined;
}
if (!isWindows && title.includes("/sequential/")) {
// Sequential node tests share common.PORT (12346); a cluster worker
// or child_process subprocess that outlives its test can keep that
Expand Down
2 changes: 2 additions & 0 deletions src/js/builtins/UtilInspect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export function getStylizeWithColor(inspect: Inspect) {
return function stylizeWithColor(str: string, styleType: string) {
const style = inspect.styles[styleType];
if (style !== undefined) {
// inspect.styles.regexp is a function (highlightRegExp), not a color name.
if (typeof style === "function") return style(str);
const color = inspect.colors[style];
if (color !== undefined) return `\u001b[${color[0]}m${str}\u001b[${color[1]}m`;
}
Expand Down
Loading
Loading