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

infernojs / inferno / 4802
100%
master: 93%

Build:
Build:
LAST BUILD BRANCH: update-path-to-regexp
DEFAULT BRANCH: master
Ran 09 Jan 2017 12:40AM UTC
Jobs 1
Files 49
Run time 2s
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
4802

Pull #689

travis-ci

web-flow
Fix bug in hyperscript with props.children

inferno-hyperscript does not provide children as props.children to components unless the parent explicitly passes them as a prop. This breaks libraries and code that use `props.children` in any way. For example,

```javascript
h(Parent, [
    h(Child),
])
```

In the above example, `props.children` resolves to null inside `Parent` component but it is expected to be `[h(Child)]`. This works correctly in React, Preact and inferno-create-element but not in inferno-hyperscript.

This commit fixes the bug in inferno-hyperscript so it always provides the children as `props.children` to all components just like inferno-create-element.
Pull Request #689: Fix bug in hyperscript with props.children

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

2824 of 3129 relevant lines covered (90.25%)

4382.9 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
100.0
src/factories/hyperscript.ts
Jobs
ID Job ID Ran Files Coverage
1 4802.1 (CXX=g++-4.8) 09 Jan 2017 12:40AM UTC 0
90.25
Travis Job 4802.1
Source Files on build 4802
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4802
  • Pull Request #689
  • PR Base - dev (#4801)
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