Repository navigation
fix(runtime): preserve names, stack targets, and preload identity - #35
Merged
Merged
Conversation
steipete
force-pushed
the
claude/port-ci-realpath
branch
from
September 30, 2026 07:42
39eaf76 to
4ab0b86
Compare
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
force-pushed
the
claude/port-ci-engine
branch
from
September 30, 2026 08:25
828fba4 to
2bc11a7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
2a8ebbff31e42a87f4661e25b484b418f94c147a2a8ebbff31193c4117a12a8ebbff3153aa5588d32bc11a7ec0Qualified together with the complete independent stack on darwin-arm64 at
82b5d98968ecfc704192b42baa610518b8959a57usingbun scripts/build.ts --profile=release, linked to unchanged WebKitf20ce7744553c910bcf16a33faf976af208de091. 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 2test/bundler/bundler_minify.test.tstest/cli/run/cpu-prof.test.tstest/cli/run/preload-test.test.jstest/cli/run/run-eval.test.tstest/cli/run/transpiler-cache.test.tstest/js/node/v8/capture-stack-trace.test.jsIndependent 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.