Repository navigation
fix: follow handled dynamic imports in the export audit - #4264
Merged
Merged
Conversation
Keep five module-local helpers private. Preserve diagnostics location navigation by following the fulfilled import namespace through catch and finally rather than treating promise methods as exports. The checker regression distinguishes the used export from an unread neighbor. Closes #4250
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.
The export audit reported five module-local helpers and one real reader it could not follow. Keep the helpers private, and teach the audit to follow a dynamic import's fulfilled namespace through
catchandfinally. This preservesresolvePlace, which Page diagnostics uses to reveal a captured location, instead of removing a working navigation path.The timeline helpers came from #3973; #4198 added the diagnostics reader through
import(...).catch(...). Their intended behavior stays intact. Rebuilding changes only two source hashes in the kernel manifest; compiled runtime and package bundles are byte-identical.Verified locally: the original six-export failure reproduces on main and passes after this change; a focused checker regression fails before the fix and passes afterward, including an unread-export control. All 668 runtime tests, the diagnostics captured-location browser test, and the browser build/type checks pass.
Closes #4250 — automated triage