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

philpl / extendable-immutable / 49
99%

Build:
DEFAULT BRANCH: master
Ran 17 Aug 2016 03:51PM UTC
Jobs 2
Files 10
Run time 3s
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
49

push

travis-ci

philpl
Fix weird ES6 class problem with workaround

Apparently when we set a property on a constructor, an inheriting
class's constructor inherits that property. No, not from the
prototype, but from the constructor itself. This only happens if
the inheritor is an ES6 class, thus doesn't use the
constructor-inheritance pattern.

See: https://jsfiddle.net/5thnphkd/5/

To fix it this adds a search function that steps through the
prototype chain and checks whether a constructor above has the same
cached empty-value. If it does, that means that our empty-value is
actually fake, and inherited. Thus we have to ignore it.

This is so weird?!

88 of 90 relevant lines covered (97.78%)

40.33 hits per line

Jobs
ID Job ID Ran Files Coverage
1 49.1 17 Aug 2016 03:51PM UTC 0
97.78
Travis Job 49.1
2 49.2 17 Aug 2016 03:51PM UTC 0
97.78
Travis Job 49.2
Source Files on build 49
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #49
  • 46799166 on github
  • Prev Build on master (#48)
  • Next Build on master (#50)
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