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

blakeembrey / javascript-stringify / 116
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/handlebars-4.7.6
DEFAULT BRANCH: master
Ran 17 Feb 2019 09:52PM UTC
Jobs 3
Files 1
Run time 11s
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

pending completion
116

Pull #22

travis-ci

web-flow
Extensive rewrite of function stringification

Node.js 10 changed how the toString method on functions works. The
resulting string is much less ambiguous than what the method produces on
older versions, but also requires a more robust parser to interpret
correctly. Stripping off computed property prefixes necessitates the
ability to find the matching ']' to a given '[', and doing that
correctly means taking into account all the ways that comments, template
strings, and regular expression literals can fool a naive
implementation. A full JavaScript parser would be many times the amount
of code added here; this "parser-lite" implementation cuts many corners
but is possibly bug-free on the most recent version of Node.

The toString implementation of previous versions of Node continues to be
supported. On Node.js 4, this logic is also possibly bug-free. However,
a behavior change that I believe started in Node.js 6 means that
versions of Node.js greater than 4 and less than 10 can toString a small
subset of functions in such a way that it is impossible to unambiguously
stringify them in all circumstances. Still, we do the best we can. Tests
that are conditionally skipped on the affected Node.js versions
demonstrate the problem.
Pull Request #22: Extensive rewrite of function stringification

179 of 189 branches covered (94.71%)

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

263 of 267 relevant lines covered (98.5%)

480.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 116.1 17 Feb 2019 09:52PM UTC 0
93.63
Travis Job 116.1
2 116.2 17 Feb 2019 09:52PM UTC 0
97.0
Travis Job 116.2
3 116.3 17 Feb 2019 09:52PM UTC 0
94.76
Travis Job 116.3
Source Files on build 116
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #116
  • Pull Request #22
  • PR Base - master (#107)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc