Repository navigation
[TS PBT] Verify admitted statement execution scope - #694
Open
CaelmBleidd wants to merge 3 commits into
Open
CaelmBleidd wants to merge 3 commits into
CaelmBleidd wants to merge 3 commits into
Conversation
This was referenced Dec 4, 2026
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.
Admitted V8 snapshots can omit uncalled functions. Istanbul can then attribute an enclosing range to their bodies. A zero-count block can also fail to clear a remapped source line. Either case can incorrectly remove statement goals from the symbolic phase.
Use the actual generated script, its inline source map, and its owning V8 function and block to confirm TypeScript statement-line counts. Omit ambiguous lines with a diagnostic. The statement report is independent of exact branch conversion and remains available when that conversion reaches its deadline. Bound the work on the concrete path and report partial coverage for files that exceed that bound.
This PR is stacked on #665. The branch-owner fix remains in #669.
Validation includes a property run with a taken and untaken arm, called and uncalled nested bodies, an uncalled method, and a forced branch deadline. Additional cases cover mixed field and method lines in all four TypeScript module formats and older adapters without a statement report. The LinkedList probe retains hits on lines 113 and 115 and records zero on lines 117, 153, and 154.