Skip to content

fix(runtime): preserve names, stack targets, and preload identity - #35

Merged
steipete merged 5 commits into
mainfrom
claude/port-ci-engine
Sep 30, 2026
Merged

steipete merged 5 commits into
mainfrom
claude/port-ci-engine

Conversation

@steipete

@steipete steipete commented Sep 30, 2026 •

Copy link
Copy Markdown

Extract the Bun-only naming, stack-formatting, and preload-identity fixes from the CI integration commit. Preserve inferred function/class names, allow object targets in the default stack formatter, and retain preload file-URL query/fragment identity. Advance the transpiler-cache version for changed parser output while reusing fork #14’s cache ownership fix. The jsdom Proxy and inspector GC ports remain WebKit follow-ups: the pinned engine lacks ensureHeapAgent().

Original authors and cherry-pick provenance are retained as individual commits.

CI source Fork commit Fix Upstream PR/state
2a8ebbff31 e42a87f466 fix(runtime): retain inferred function and class names Not separately identified
1e25b484b4 18f94c147a test: isolate inferred-name regression fixtures Not separately identified
2a8ebbff31 193c4117a1 fix(node:v8): format captured stacks for object targets Not separately identified
2a8ebbff31 53aa5588d3 fix(runtime): preserve preload file URL identity Not separately identified
Qualification / formatting adjustment 2bc11a7ec0 test(v8): match Node function-target stack headings Not separately identified

Qualified together with the complete independent stack on darwin-arm64 at 82b5d98968ecfc704192b42baa610518b8959a57 using bun scripts/build.ts --profile=release, linked to unchanged WebKit f20ce7744553c910bcf16a33faf976af208de091. The release binary’s revision was verified before tests.

BUN_FEATURE_FLAG_INTERNAL_FOR_TESTING=1 BUN_GARBAGE_COLLECTOR_LEVEL=0 build/release/bun test <file> --max-concurrency 2

Test file Pass Skip Todo Fail
test/bundler/bundler_minify.test.ts 68 0 0 0
test/cli/run/cpu-prof.test.ts 16 0 0 0
test/cli/run/preload-test.test.js 3 0 3 0
test/cli/run/run-eval.test.ts 65 0 0 0
test/cli/run/transpiler-cache.test.ts 27 0 0 0
test/js/node/v8/capture-stack-trace.test.js 69 0 0 0

Independent Codex review found no actionable P0/P1 findings. Local JavaScript lint and Rust/C++/TypeScript formatting checks passed. Cross-target Rust checking passed all 12 targets with release codegen inputs (0 failed, 0 skipped). No workflow or WebKit-pin changes.

Node v26.10.0 confirms that Error.prepareStackTrace(function target(){}, []) returns "target"; the port’s function-target regression uses that exact expectation. The older aggregate tunnel rewrite is not ported over current native HTTP ownership; HTTP CONNECT, WebSocket, and close/drain suites qualify that boundary.

@steipete
steipete force-pushed the claude/port-ci-realpath branch from 39eaf76 to 4ab0b86 Compare September 30, 2026 07:42
Base automatically changed from claude/port-ci-realpath to main September 30, 2026 08:24
Keep named bindings when inlining would erase their inferred names. Invalidate cached output for the name and inline type-clause repairs while retaining the existing plugin cache ownership fix.

(cherry picked from commit 2a8ebbf)
Use explicit modules and direct observations so the naming cases exercise single-use substitution. Keep the exact name and value assertions while separating the existing sloppy-mode block-function lowering behavior.

(cherry picked from commit 1e25b48)
Allow the default Error.prepareStackTrace implementation to format the object targets accepted by Error.captureStackTrace, while rejecting primitive values.

(cherry picked from commit 2a8ebbf)
Pass ESM preload file URLs through the module loader with their query and fragment identity intact. Retain the existing decoded-path handling for require preloads.

(cherry picked from commit 2a8ebbf)
@steipete
steipete force-pushed the claude/port-ci-engine branch from 828fba4 to 2bc11a7 Compare September 30, 2026 08:25
@steipete
steipete merged commit e6e11d6 into main Sep 30, 2026
8 checks passed
@steipete
steipete deleted the claude/port-ci-engine branch September 30, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant