Repository navigation
fix(javascript): share source-map admission and path resolution - #12161
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a080ae3b54
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
[Medium impact] The reviewed follow-up appears safe to merge. SummarySource-map readers now share bounded checks and path resolution while keeping raw declarations separate from usable paths.
Tests were inspected, not run. Available local history showed no superseding change; live PR status was not checked. Reviews (2) · Last reviewed commit: "fix(javascript): retain source content b..." · Reviewed by Greptile |
Summary
Local analysis and source-map inspection share bounded structural admission. Source maps and createRequire now share the relative URL projection and keep invalid matching paths separate from raw Evidence.
Fixes #12135
Refs #7171, #7729.
Contract and boundary impact
Previously retained Evidence remains readable. Reanalysis refreshes path facts.
Evidence and regression coverage
Public CLI and stdio MCP exercise malformed maps, decoded NULs, and synthetic-root re-entry. Node independently confirms the createRequire result. A release-artifact regression preserves embedded-source exposure with unresolved coordinates when a valid indexed leaf exceeds the positioned row allowance.
Validation performed
npm run verify:browser:source-mapsverified real Chrome with isolated esbuild 0.25.10 on this head.npm run check:fastandgit diff --check origin/main...HEADpassed.Author readiness
Human owner: @morluto
Before merge
type(scope): outcome.