Repository navigation
Conversation
This branch has not been deployed
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.
Fuzzy patch matching could call
compareLineafter passing the end of the source, supplyingundefineddespite its declaredstringparameter. Compare only existing source lines and let the existing mismatch paths handle missing lines. Missing deletions still fail, missing context can still consume the fuzz budget, and real blank lines still reach the callback.Fixes #745.
Validation:
corepack yarn testpasses on Linux/Node 22.23.1 with Yarn 4.18.1: 379 tests, lint, ESM/CommonJS builds, type/package checks, bundles and coverage thresholds.Full native Windows attempts encountered README line-ending fixtures, Unix permission checks and async timing thresholds; the focused Windows suite passes. No browser or hosted CI result is claimed here.
Integration note for the separate, unmerged #748: the patches apply together and preserve its fixture's output, but its callback-count assertion must expect 2 rather than 3. This fix intentionally omits the initial comparison against an absent line; the iterator change itself remains independent.
Prepared with Codex assistance and independent review.