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

pelotom / runtypes / 615 / 1
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 19 Apr 2021 08:30AM UTC
Files 31
Run time 4s
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

19 Apr 2021 08:28AM UTC coverage: 99.044% (+0.01%) from 99.033%
615.1

push

travis-ci

web-flow
Handle objects with null prototypes (#227)

It's currently possible to crash e.g. `Runtype.validate` by passing in
an object with a null prototype. This may seem like an odd thing to do,
but it's employed by some popular packages like Apollo Server and Koa,
and can be observed by trying to validate some Koa query params.

```
TypeError: object?.propertyIsEnumerable is not a function
    at ./node_modules/runtypes/lib/util.js:37:126
    at Array.filter (<anonymous>)
    at Object.enumerableKeysOf (./node_modules/runtypes/lib/util.js:37:35)
    at ./node_modules/runtypes/lib/types/record.js:39:122
    at Object.A._innerValidate (./node_modules/runtypes/lib/runtype.js:14:16)
    at Object.A.validate (./node_modules/runtypes/lib/runtype.js:16:46)
```

256 of 261 branches covered (98.08%)

Branch coverage included in aggregate %.

469 of 471 relevant lines covered (99.58%)

527.77 hits per line

Source Files on job 615.1
  • Tree
  • List 0
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 543
  • Travis Job 615.1
  • 42047917 on github
  • Prev Job for on master (#611.1)
  • Next Job for on master (#619.1)
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