Skip to content

Phase 9: coverage to 100% - #631

Merged
kevindb merged 6 commits into
mainfrom
phase-9-coverage
Nov 1, 2026
Merged

kevindb merged 6 commits into
mainfrom
phase-9-coverage

Conversation

@kevindb

@kevindb kevindb commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Phase 9 of docs/plans/modernization.md: 100% lines, branches, functions and statements, enforced by npm test. No /* v8 ignore */ comments and no compatibility change.

  • Dead branches removed (each listed with its reason in docs/research/coverage-gaps.md): the || "" and || [] fallbacks, the always-true serializedData[i] and if (a) checks, the never-true timedOut flag, the always-present s.success check, and the dead XML branch with the whole toXml helper.
  • javascript:false (IE on HTTPS): the check reads document.URL instead of window.location.href (the same value for a page's own document). The suite can redefine document.URL, so a test reaches the branch without an HTTPS test project.
  • Response-read catch: now covered by a stubbed IE8 access denial; its || status fallback is gone.
  • Fix: explicit dataType: "script" now evaluates iframe responses, as $.ajax does. Its it.fails is an it; recorded in 4x-behavior-changes.md.
  • Docs: Phase 9 metrics column (size 16.70 kB min / 6.38 kB gzip, complexity 386 total, max 54), the CodeQL baseline on main (3 alerts), and the Phase 10 decisions on advisories and the custom CodeQL query.

Verified locally: npm test and the suite on jQuery 1.7.2, 3.7.1 and 4.0.0. Medians of 5 runs: npm test 5.0 s wall, suite 3.45 s in-runner (3.9 s wall).

🤖 Generated with Claude Code

@kevindb
kevindb merged commit d6e7292 into main Nov 1, 2026
7 checks passed
@kevindb
kevindb deleted the phase-9-coverage branch November 1, 2026 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant