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

Kikobeats / json-stringify-deterministic / 44059382822
100%

Build:
DEFAULT BRANCH: master
Ran 17 Nov 2026 09:51AM UTC
Jobs 1
Files 3
Run time 1min
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

17 Nov 2026 09:51AM UTC coverage: 100.0%. Remained the same
44059382822

push

github

web-flow
fix: only call toJSON when it is a function (#34)

* fix: only call toJSON when it is a function

A plain field named toJSON (e.g. { toJSON: "label" }) threw
"obj.toJSON is not a function". Match JSON.stringify: invoke toJSON only
when callable, and pass it the property key.

Closes #33

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix: read toJSON once before calling it

A getter runs on every access, so checking toJSON and calling it as a method reads it twice and can call a different function than JSON.stringify.

* fix: call toJSON without using its call property

A function whose call property is null still runs under JSON.stringify. Looking up toJSON.call throws before that function runs.

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

53 of 53 branches covered (100.0%)

6 of 6 new or added lines in 1 file covered. (100.0%)

110 of 110 relevant lines covered (100.0%)

71.51 hits per line

Jobs
ID Job ID Ran Files Coverage
1 44059382822.1 17 Nov 2026 09:51AM UTC 3
100.0
GitHub Action Run
Source Files on build 44059382822
  • Tree
  • List 3
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44059382822
  • f0316516 on github
  • Prev Build on master (#38361267282)
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