Skip to content

Backport wabac.JS change around rewriting: detect when JS is in 'strict' mode and avoid using 'arguments' - #286

Merged
benoit74 merged 2 commits into
mainfrom
backport
Mar 16, 2026
Merged

benoit74 merged 2 commits into
mainfrom
backport

Upgrade to wombat 3.10.3

f8b337b
Select commit
Loading
Failed to load commit list.
This check has been archived and is scheduled for deletion. Learn more about checks retention
Codecov / codecov/project failed Mar 16, 2026 in 1s

99.52% (-0.12%) compared to a2145be

View this Pull Request on Codecov

99.52% (-0.12%) compared to a2145be

Details

Codecov Report

❌ Patch coverage is 86.95652% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.52%. Comparing base (a2145be) to head (f8b337b).

Files with missing lines Patch % Lines
src/zimscraperlib/rewriting/js.py 86.95% 1 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #286      +/-   ##
==========================================
- Coverage   99.63%   99.52%   -0.12%     
==========================================
  Files          41       41              
  Lines        2496     2516      +20     
  Branches      347      354       +7     
==========================================
+ Hits         2487     2504      +17     
- Misses          7        8       +1     
- Partials        2        4       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.