• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

moment / moment / 34854224553
99%

Build:
DEFAULT BRANCH: develop
Ran 14 Sep 2026 02:14PM UTC
Jobs 1
Files 450
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Sep 2026 02:13PM UTC coverage: 98.955% (-0.06%) from 99.017%
34854224553

push

github

web-flow
[bugfix] Fix locale('__proto__') corrupting the global locale (#6442)

* Fix locale('__proto__') corrupting the global locale

The internal locale registry is a plain object, so loadLocale()
checked whether a locale was already loaded with locales[name] !== undefined.
For names like __proto__, constructor, or prototype, that lookup walks
the prototype chain and returns an inherited value instead of a real
locale entry, which then gets stored as the global locale and breaks
every later formatting call until a valid locale is set again.

Switch both lookups in loadLocale to hasOwnProp so an unrecognized
name is always treated as not found, the same way it would be for any
other unknown locale string.

* [bugfix] Guard locale fallback lookup

---------

Co-authored-by: Matt Johnson-Pint <mattjohnsonpint@gmail.com>

3583 of 4168 branches covered (85.96%)

24 of 24 new or added lines in 2 files covered. (100.0%)

48 existing lines in 16 files now uncovered.

31916 of 32253 relevant lines covered (98.96%)

5112.53 hits per line

Coverage Regressions

Lines Coverage ∆ File
10
92.31
-7.69% src/test/locale/zh-cn.js
8
96.41
0.0% src/test/locale/cs.js
8
96.15
0.0% src/test/locale/sk.js
5
96.82
-3.18% src/test/locale/ja.js
2
88.89
2.22% src/locale/cs.js
2
87.1
-3.23% src/locale/pl.js
2
88.37
2.33% src/locale/sk.js
2
90.32
-6.45% src/locale/zh-cn.js
2
98.88
-0.56% src/test/locale/pl.js
1
75.51
0.0% src/locale/hr.js
1
80.0
-20.0% src/locale/it-ch.js
1
87.5
-12.5% src/locale/it.js
1
93.75
-6.25% src/locale/ja.js
1
78.46
0.0% src/locale/sl.js
1
99.35
0.0% src/test/locale/hr.js
1
99.56
0.0% src/test/locale/sl.js
Jobs
ID Job ID Ran Files Coverage
1 34854224553.1 14 Sep 2026 02:14PM UTC 450
98.96
GitHub Action Run
Source Files on build 34854224553
  • Tree
  • List 450
  • Changed 18
  • Source Changed 2
  • Coverage Changed 18
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #34854224553
  • 0d105043 on github
  • Prev Build on develop (#34506375304)
  • Next Build on develop (#34854784844)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc