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

pelotom / runtypes / 615
96%

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

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 %.

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

469 of 471 relevant lines covered (99.58%)

527.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 615.1 19 Apr 2021 08:30AM UTC 0
99.04
Travis Job 615.1
Source Files on build 615
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #615
  • 42047917 on github
  • Prev Build on master (#611)
  • Next Build on master (#619)
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