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

preactjs / preact / 6794840280
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 08 Nov 2023 07:03AM UTC
Jobs 1
Files 31
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

08 Nov 2023 07:02AM UTC coverage: 99.465% (-0.001%) from 99.466%
6794840280

push

github

web-flow
Do typeof string check before looking for String constructor (#4198)

In `constructNewChildrenArray` we look for the `String` constructor to support #4151 (i.e. strings created with `new String`). However, doing this check first leads to a megamorphic deopt in `constructorNewChildrenArray` since V8 has many different internal types for strings, leading to a megamorphic access for `childVNode.constructor` in the common case (normal strings and VNodes).

This PR adds back the `typeof childVNode == 'string'` check to catch normal strings first before falling back to `childVNode.constructor == String` to check for manually constructed strings.

Commits:
* Add back typeof string check in diffChildren (+5 B)
* Store matching oldVNode in variable in constructNewChildrenArray  (-4 B)
* Inline insertion checks into skew block (-3 B)

1219 of 1250 branches covered (0.0%)

744 of 748 relevant lines covered (99.47%)

858.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6794840280.1 08 Nov 2023 07:03AM UTC 31
99.47
GitHub Action Run
Source Files on build 6794840280
  • Tree
  • List 31
  • Changed 7
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #6794840280
  • b4a1cc20 on github
  • Prev Build on main (#6791966198)
  • Next Build on main (#6794840291)
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

© 2025 Coveralls, Inc